<!DOCTYPE html><html><head lang="zh-CN"><script id="pageLoadStartPoint">document.getElementById("pageLoadStartPoint").setAttribute("data-time",+new Date)</script><script id="resourceLoadEndPoint">window.addEventListener("load",function(e){document.getElementById("resourceLoadEndPoint").setAttribute("data-time",+new Date)})</script><script id="domReadyPoint">window.addEventListener("DOMContentLoaded",function(t){document.getElementById("domReadyPoint").setAttribute("data-time",+new Date)})</script><script type="text/javascript" wxquality="quality_static_entry">window.__BuildEnv__={buildTime:"2019-05-29 18:14:24",kulplib:{version:"1.0.66"},kulp:{version:"1.0.119"},wxgamelib:{version:"1.0.135"}},function(n){var i={};function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.m=n,r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="//res.wx.qq.com/wechatgame/product/webpack/jsapi/",r(r.s=45)}({0:function(e,t,n){"use strict";function i(){var t={};try{top.window&&top.window.document&&(t=top.window)}catch(e){t=window}return t}function r(e,t){return(t||i()).document.getElementById(e)}e.exports={S:r,SCN:function(e,t){return(t||i()).document.getElementsByClassName(e)},STN:function(e,t){return(t||i()).document.getElementsByTagName(e)},dom:r,window:i()}},10:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},13:function(e,t,n){"use strict";var i={default:{isOK:function(e){return-1!=(e.err_msg+"").indexOf(":ok")||"0"==e.result+""}},getInstallState:{isOK:function(e){return-1!=(e.err_msg+"").indexOf(":yes")}},operateGameCenterMsg:{isOK:function(e){return null!=e.result||"err_msg"in e&&-1!=(e.err_msg+"").indexOf(":ok")}}};e.exports={isOK:function(e,t){return e in i?i[e].isOK(t):i.default.isOK(t)}}},14:function(e,t,n){"use strict";var i=n(0),r=n(6),o=i.window.WXGAME||{};r=o.baseQualityReport||r,e.exports={StartLogic:function(e,t,n){return r.StartLogic(e,t,n,null)},StartRuner:function(e,t){var n=r.LOGIC_CONST.TypeTextEnum.LOGIC;return r.StartLogic(n,e,t,null)},LOGIC_CONST:r.LOGIC_CONST}},2:function(e,t,n){"use strict";var i=n(3).getQueryStr,s=n(0),r={},o=s.window.navigator.userAgent,u=/(iPhone|iPad|iPod|iOS)/i.test(o),a=/(Android)/i.test(o),c=-1!=o.indexOf("MicroMessenger"),f=-1!=o.indexOf("WindowsWechat"),l=!1,d=/(MSDK)/i.test(o),p=/MSDK\/[\d\.]{1,}?a/i.test(o),g=/MSDK\/[\d\.]{1,}?i/i.test(o);/Android|BlackBerry|IEMobile|iPhone|iPad|iPod/.test(o)||(l=!0),r.isiOS=u||g,r.isLuggage=/Luggage/i.test(o),r.isPad=/iPad/i.test(o),r.isiOS9=u&&-1!=o.indexOf("OS 9"),r.isiOS10=u&&-1!=o.indexOf("OS 10"),r.isiOS11=u&&-1!=o.indexOf("OS 11"),r.isAndroid=a||p,r.isWechat=c,r.isPcWechat=f,r.isPC=l,r.isMSDK=d,r.isAndroidMSDK=p,r.isIosMSDK=g,r.deviceType=function(){var e=s.window.navigator.userAgent,t={iPhone:0,iPad:0,iPod:0,Android:0},n={};for(var i in t){var r=new RegExp(i,"i");if(n[i]=r.test(e)?i:t[i],n[i])return i.toLowerCase()}return""}(),r.versionCompare=function(e,t){for(var n=e.split("."),i=t.split("."),r=0,o=Math.min(n.length,i.length);r<o;r++){var u=parseInt(n[r])-parseInt(i[r]);if(0!=u)return u}return n.length-i.length},function(e){var t=o.match(/OS[\s]+(\d{1,2}?)_\d{1}/);if(2<=(t=t||[]).length){var n=parseInt(""+t[1]);e.iOSVersion=isNaN(n)?0:n}}(r),r.clientVersion=function(e){var t=(s.window.navigator.userAgent||s.window.navigator.wxuserAgent).match(/MicroMessenger\/([\d\.]+)/i),n="",i=[1e3,100,1],r=0;if(t&&1<t.length&&(n=t[1]),e)return n;for(var o=0,u=(n=n.split(".").slice(0,3)).length;o<u;o++){var a=parseInt(n[o].substr(0,2));isNaN(a)||(r+=a*i[o])}return r},r.getNetworkType=function(){var e=(s.window.navigator.userAgent||s.window.navigator.wxuserAgent).match(/NetType\/[^\s]+/i),t="",n={wifi:0,uninet:2,uniwap:2,cmnet:2,cmwap:2,ctnet:2,ctwap:2,"2g":2,"3g":3,"3gnet":3,"3gwap":3,nonwifi:3,"4g":4,lte:4,ctlte:4,"3g+":4,"4gnet":4};return e&&1<=e.length&&(t=e[0].split("/")[1].toLowerCase()),t in n?n[t]+"":"1"},r.isWepkgInUrl=function(){return!!i("wechat_pkgid",null,s.window)},r.isWepkg=function(){var e=this.isWepkgInUrl(),t=this.clientVersion(!0);if(0<=this.versionCompare(t,"6.5.9")){var n=s.window.__usewepkg__;return null!=n&&!!n&&e}t=this.clientVersion(!0);var i=this.isAndroid?"6.5.6":"6.5.8";return 0<=this.versionCompare(t,i)&&e},r.getIsInMiniAppAsync=function(e){var t,n=s.window.__wxjs_environment,i=s.window.userAgent||"";if(n||i){var r="miniprogram"===n||-1!=i.indexOf("miniprogram");e(r)}else"function"==typeof e&&s.document.addEventListener("WeixinJSBridgeReady",function(){t&&(clearTimeout(t),t=null),e("miniprogram"===s.window.__wxjs_environment)},!1),t=setTimeout(function(){e&&e(!1)},2e3)},e.exports=r},3:function(e,t,n){"use strict";var a=n(0);e.exports={S:function(e,t){return(t||a.window).document.getElementById(e)},SCN:function(e,t){return(t||a.window).document.getElementsByClassName(e)},STN:function(e,t){return(t||a.window).document.getElementsByTagName(e)},getValue:function(e,t){for(var n=t.split("."),i=e||{},r=null;r=n.shift();){if(void 0===i[r])return;i=i[r]}return i},extend:function(){for(var e=arguments,t=e[0],n=1,i=e.length;n<i;n++){var r=e[n];for(var o in r)t[o]=r[o]}return t},unikey:function(e){return[e,"f",Math.random()].join("").split(".").join("")},log:function(e){(new Image).src="https://game.weixin.qq.com/favicon.ico?ts="+(new Date).getTime()+"&log="+encodeURIComponent(e)},getQueryStr:function(e,t,n){if(void 0===n&&(n=window),void 0===n.location)throw"Illegal Context,Need context.location";var i=t||n.location.search,r=(i=(""+i).replace(/#(.*)$/g,"").replace(/&amp;/g,"&")).match(new RegExp("[?&]"+e+"=([^&]+)","i"));return null==r||r.length<=1?"":r[1]},buildAPI:function(o,e){var t,n=/(iPhone|iPad|iPod|iOS)/i.test(a.window.navigator.userAgent),i=/(Android)/i.test(a.window.navigator.userAgent),u=o.lastIndexOf("."),r=function(e){var t,n=o.substring(0,u).split("."),i=window;for(var r in n)!i[t=n[r]]&&(i[t]={}),i=i[t];return i}();t=e.iOS&&n?e.iOS:e.android&&i?e.android:function(){},r[o.substring(u+1)]=t}}},45:function(e,t,n){"use strict";n(46)},46:function(e,t,n){"use strict";var r=n(14),i=r.LOGIC_CONST,o={getUrl:function(e){var t="";return e.getAttribute&&(t=e.getAttribute("src")||e.getAttribute("href")),t},getPath:function(e){var t=e.path||[];return t.pop(),t.map(function(e){return e.nodeName.toLowerCase()}).join("/")},isDomValid:function(e){var t=this.getUrl(e);return!(!/^http/i.test(t)&&!/^\/\//i.test(t))&&1==e.nodeType},getStaticType:function(e){var t="";if(!e.tagName)return t;switch(e.tagName.toLowerCase()){case"link":t=i.TypeTextEnum.CSS;break;case"script":t=-1!=e.getAttribute("src").indexOf("commlib")?i.TypeTextEnum.COMMLIB:i.TypeTextEnum.JS;break;case"img":t=i.TypeTextEnum.IMAGE}return t}};function u(e){this.wxBridge=e,this.addError()}u.prototype.addError=function(){var i=this;window.addEventListener("error",function(e){!function(e){var t=e.target||e.srcElement||{};if(o.isDomValid(t)){var n=o.getStaticType(t);n&&r.StartLogic(n,o.getUrl(t),{xpath:o.getPath(e)},i.wxBridge).EndLogic({errcode:404})}}(e)},!0)},e.exports=function(e){return new u(e)}},6:function(e,t,a){"use strict";var n=a(7),s=a(8),o=a(2),u=a(0).window,c={TypeEnum:{CGI:0,LOGIC:1,CSS:2,JS:3,IMAGE:4,JSAPI:5,COMMLIB:6},TypeTextEnum:{CGI:"CGI",LOGIC:"LOGIC",CSS:"CSS",JS:"JS",IMAGE:"IMAGE",JSAPI:"JSAPI",COMMLIB:"COMMLIB"}},f=function(e){return Object.prototype.toString.call(e).replace(/\]/g,"").split(" ")[1]},l=function(){var t=new n;t.setSync();var r=!1;return function(i,e){e&&t.run(function(){var n=this;if(!0===r)setTimeout(function(){n.done()},0);else{if(!e.verifyJsapi)return void n.done();e.verifyJsapi(e.apis,function(e,t){!0===e?r=!0:s.logError("EndLogic","get jsapi reportGameWeb failed"),n.done()})}}),t.run(function(){var n=this,e=o.clientVersion(!0);if(o.versionCompare(e,"7.0.0")<0)n.done();else{var t=function(){u.WeixinJSBridge.invoke("reportGameWeb",{type:"2",isReportNow:"1",data:i},function(e){n.done();var t=!1;o.isiOS&&(t="0"!=e.result),o.isAndroid&&(t=-1==e.err_msg.indexOf(":ok")),t&&s.logError("EndLogic","jsapi reportGameWeb call fail",e,i)})};window.WeixinJSBridge?t():window.document.addEventListener("WeixinJSBridgeReady",function(){t()})}})}}();function i(i,r,o,e){var u=(new Date).getTime();if(null!=i&&!(i in c.TypeEnum))throw"Illegal StartLogic Params: type, see LOGIC_CONST.js";if(null!=r&&"String"!=f(r))throw"Illegal StartLogic Params: target,need string";if(null!=o&&"Object"!=f(o))throw"Illegal StartLogic Params: params,need a json";return{EndLogic:function(e){var t=(new Date).getTime(),n={Type:c.TypeEnum[i],Target:encodeURIComponent(r+"").substr(0,1024),Params:encodeURIComponent(JSON.stringify(o)).substr(0,1024),Result:encodeURIComponent(JSON.stringify(e)).substr(0,1024),CostTime:t-u};s.logInfo("EndLogic","this means i called reportGameWeb seriously",i,r,o,e),i===c.TypeTextEnum.JSAPI&&a(13).isOK(r,e)||l.call(this,{30:n.Type,31:n.Target,32:n.Params,33:n.Result,34:n.CostTime},void 0)}}}e.exports={StartRunner:function(e,t,n){return i(c.TypeTextEnum.LOGIC,e,t)},StartLogic:i,LOGIC_CONST:c}},7:function(e,t,n){"use strict";var i="Parallel",r="Relevant",o=function(){this.queueArr=[],this.QueueType="",this.onceStarted=!1};o.prototype.setSync=function(){this.QueueType="Sync",this.onceStarted=!1,this.done=function(e){var t=this.queueArr.shift();this.queueArr.length<=0&&(this.onceStarted=!1),"function"==typeof t&&setTimeout(function(){t.call(this,e)}.bind(this),0)}.bind(this)},o.prototype.setParallel=function(){this.QueueType=i,this.done=function(e){}.bind(this)},o.prototype.setRelevant=function(){this.QueueType=r,this.onceStarted=!1,this.done=function(e){for(0<this.queueArr.length&&(this.queueArr[0].backFn.call(this,e),this.queueArr.shift());next=this.queueArr.shift();)"function"==typeof next.backFn&&setTimeout(function(){next.backFn.call(this,e)}.bind(this),0);this.onceStarted=!1}.bind(this)},o.prototype.run=function(n){switch(this.QueueType){case"Sync":!function(e,t){if("function"==typeof t&&(e.queueArr.push(t),!1===e.onceStarted)){var n=e.queueArr.shift();if("function"!=typeof n)throw"fatal error for no function in queue";e.onceStarted=!0,setTimeout(function(){n.call(e)},0)}}(this,n);break;case i:!function(e,t){if("function"!=typeof n)throw"faltal error for no function in queue";n.call(e)}(this);break;case r:!function(e,t){if(e.queueArr.push(t),!1===e.onceStarted){var n=e.queueArr[0];n&&"function"==typeof n.fn?(e.onceStarted=!0,setTimeout(function(){n.fn.call(e)},0)):console.error("_runRelevant:",n," is illegal")}}(this,n)}},e.exports=o},8:function(e,t,n){"use strict";(function(e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=function(){var t={};try{top.window&&top.window.document&&(t=top.window)}catch(e){t=window}return t}(),a=function(e,t,n,i){var r={1:"info",2:"warn",3:"error"};e.invoke("log",{msg:["[WXGameH5Log]","["+r[n]+"]","["+t+"]","\n",i,"\n"].join("")}),console.log(["[WXGameH5Log]","["+r[n]+"]","["+t+"]","\n",i,"\n"].join(""))},i=function(e,t,n){var i=window.location.pathname.split(".html");(i=i[0].split("/").slice(-2)).push(e);var r=i.join("_"),o=u.window;o.WeixinJSBridge?a(o.WeixinJSBridge,r,t,n):document.addEventListener("WeixinJSBridgeReady",function(){a(o.WeixinJSBridge,r,t,n)})},r=function(e){return(e=e||[]).map(function(t){if("object"==(void 0===t?"undefined":n(t)))try{t=JSON.stringify(t)}catch(e){t=t}return"string"!=typeof t&&(t=""+t),t})},t={logInfo:function(e){var t=Array.prototype.slice.apply(arguments);t=r(t),i(e,1,t.slice(1).join(" "))},logWarn:function(e){var t=Array.prototype.slice.apply(arguments);t=r(t),i(e,2,t.slice(1).join(" "))},logError:function(e){var t=Array.prototype.slice.apply(arguments);t=r(t),i(e,3,t.slice(1).join(" "))}};(e=e||{}).exports=t}).call(this,n(10)(e))}})</script><meta charset="UTF-8"><title>鍚姩娓告垙</title><link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon"><link rel="icon" type="image/png" href=""><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><meta name="apple-mobile-web-app-capable" content="no"><meta name="format-detection" content="telephone=no"><script type="text/javascript">console.log("weixin://preInjectJSBridge/start")</script><meta http-equiv="Content-Security-Policy" content="script-src *.qq.com *.gtimg.cn *.gtimg.com 'unsafe-inline' 'unsafe-eval';"><script>try{window._reportlistArr_=[],window._reportedlist_={},window.addEventListener("error",function(t){var r=t.target||{},e=r?r.tagName:"",o="";r.getAttribute&&(o=r.getAttribute("src")||r.getAttribute("href"));(/^http/i.test(o)||/^\/\//i.test(o))&&1==r.nodeType&&(_reportlistArr_.push({type:{SCRIPT:2,LINK:3,IMG:4}[e],status:404,url:o,target:r}),window.toolFuncs&&window.toolFuncs.triggerProcessAndReport&&window.toolFuncs.triggerProcessAndReport())},!0)}catch(t){console.log(t)}</script><script>try{function loadErrReport(t){setTimeout(function(){var r={type:t.src?2:3,url:t.src||t.href||"",status:404};window.uni_report&&window.uni_report(r)},1e3)}}catch(r){}</script><link rel="stylesheet" href="//res.wx.qq.com/wechatgame/zh_CN/tmt/game/dist/css/wgui.1.0.1.min.css"><script type="text/javascript" src="../html/index.js"></script><script type="text/javascript" wxgameh5log="true">function getWindow(){var n={};try{top.window&&top.window.document&&(n=top.window)}catch(o){n=window}return n}var Dom=getWindow(),runLog=function(o,n,r,i){var e={1:"info",2:"warn",3:"error"};o.invoke("log",{msg:["[WXGameH5Log]","["+e[r]+"]","["+n+"]","\n",i,"\n"].join("")}),console.log(["[WXGameH5Log]","["+e[r]+"]","["+n+"]","\n",i,"\n"].join(""))},log=function(o,n,r){var i=window.location.pathname.split(".html");(i=i[0].split("/").slice(-2)).push(o);var e=i.join("_"),t=Dom.window;t.WeixinJSBridge?runLog(t.WeixinJSBridge,e,n,r):document.addEventListener("WeixinJSBridgeReady",function(){runLog(t.WeixinJSBridge,e,n,r)})},paramToStr=function(o){return(o=o||[]).map(function(n){if("object"==typeof n)try{n=JSON.stringify(n)}catch(o){n=n}return"string"!=typeof n&&(n=""+n),n})},lexports={logInfo:function(o){var n=Array.prototype.slice.apply(arguments);n=paramToStr(n),log(o,1,n.slice(1).join(" "))},logWarn:function(o){var n=Array.prototype.slice.apply(arguments);n=paramToStr(n),log(o,2,n.slice(1).join(" "))},logError:function(o){var n=Array.prototype.slice.apply(arguments);n=paramToStr(n),log(o,3,n.slice(1).join(" "))}};if("undefined"!=typeof module)module=module||{},module.exports=lexports;else for(var p in lexports)window[p]=lexports[p]</script><script id="headLoadEndPoint">document.getElementById("headLoadEndPoint").setAttribute("data-time",+new Date)</script></head><body><div id="loading"><div class="wgui-message wgui-message_loading"><div class="wgui-message__content"><div class="wgui-message__inner"><div class="wgui-message__icon" style=""></div><div class="wgui-message__text">鍔犺浇涓�...</div></div></div><div class="wgui-message__line-wrap" style="display:none"><div class="wgui-message__line" style="-webkit-animation:move 1s linear 1;animation:move 1s linear 1"></div></div></div></div><script id="htmlContentLoadEndPoint">document.getElementById("htmlContentLoadEndPoint").setAttribute("data-time",+new Date)</script><script type="text/javascript">window.__BuildEnv__={buildTime:"2019-06-11 15:23:52",kulplib:{version:"1.0.69"},kulp:{version:"1.0.110"},wxgamelib:{version:"1.0.143"}},function(t){var i={};function r(e){if(i[e])return i[e].exports;var n=i[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=t,r.c=i,r.d=function(e,n,t){r.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(n,e){if(1&e&&(n=r(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(r.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var i in n)r.d(t,i,function(e){return n[e]}.bind(null,i));return t},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.p="//res.wx.qq.com/wechatgame/product/webpack/gamecenter/",r(r.s=44)}([function(e,n){function t(){var n={};try{top.window&&top.window.document&&(n=top.window)}catch(e){n=window}return n}function i(e,n){return(n||t()).document.getElementById(e)}e.exports={S:i,SCN:function(e,n){return(n||t()).document.getElementsByClassName(e)},STN:function(e,n){return(n||t()).document.getElementsByTagName(e)},dom:i,window:t()}},function(e,n,t){var s=t(0);e.exports={S:function(e,n){return(n||s.window).document.getElementById(e)},SCN:function(e,n){return(n||s.window).document.getElementsByClassName(e)},STN:function(e,n){return(n||s.window).document.getElementsByTagName(e)},getValue:function(e,n){for(var t=n.split("."),i=e||{},r=null;r=t.shift();){if(void 0===i[r])return;i=i[r]}return i},extend:function(){for(var e=arguments,n=e[0],t=1,i=e.length;t<i;t++){var r=e[t];for(var o in r)n[o]=r[o]}return n},unikey:function(e){return[e,"f",Math.random()].join("").split(".").join("")},log:function(e){(new Image).src="https://game.weixin.qq.com/favicon.ico?ts="+(new Date).getTime()+"&log="+encodeURIComponent(e)},getQueryStr:function(e,n,t){if(void 0===t&&(t=window),void 0===t.location)throw"Illegal Context,Need context.location";var i=n||t.location.search,r=(i=(""+i).replace(/#(.*)$/g,"").replace(/&amp;/g,"&")).match(new RegExp("[?&]"+e+"=([^&]+)","i"));return null==r||r.length<=1?"":r[1]},buildAPI:function(o,e){var n,t=/(iPhone|iPad|iPod|iOS)/i.test(s.window.navigator.userAgent),i=/(Android)/i.test(s.window.navigator.userAgent),a=o.lastIndexOf("."),r=function(e){var n,t=o.substring(0,a).split("."),i=window;for(var r in t)!i[n=t[r]]&&(i[n]={}),i=i[n];return i}();n=e.iOS&&t?e.iOS:e.android&&i?e.android:function(){},r[o.substring(a+1)]=n}}},function(c,e,n){var g=n(0),f=n(7),m=n(11),w=n(8);!function(u,e){var n;if(u.WXGAME&&u.WXGAME.WxBridge)return n=u.WXGAME.WxBridge,c.exports=n;g.window.navigator.userAgent.indexOf("MicroMessenger/");var t=/(Android)/i.test(g.window.navigator.userAgent);u.jsapiQueue=u.jsapiQueue||new m,u.jsapiQueue.setSync(),u.verifiedMap={};var i,r=["hideMenuItems","showMenuItems","cache","setPageTitle","downloadAppInternal","launchApplication","addDownloadTaskStraight","clearBounceBackground","disableBounceScroll","dispatchEvent","openUrlWithExtraWebview","openGameWebView","openCustomWebview","openWKWebView","pauseDownloadTask","resumeDownloadTask","recordHistory","getGameCommInfo","launchMiniProgram","openGameUrlWithExtraWebView","reportGamePageTime","currentMpInfo","getNetworkType","showSmileyPanel","onGetKeyboardHeight","operateGameCenterMsg","getGameData","setGameData","reportGameWeb","jumpDownloaderWidget","getDownloadWidgetTaskInfos","openGameCenter","operateGameCenterMsg","clearGameData","setNavigationBarButtons","openGameRegion","onNetWorkChange","openWeApp"],o=["menuItem:share:weiboApp","menuItem:share:QZone","menuItem:share:qq","menuItem:share:facebook","menuItem:openWithQQBrowser","menuItem:openWithSafari","menuItem:copyUrl","menuItem:share:brand","menuItem:share:email","menuItem:wework"],a={};function s(s,l,d){var e=u.WXGAME||{},c=(f=e.baseQualityReport||f).StartRunner("jsbridge_base.verifyCall",{act:s},null);c.EndLogic({err_msg:"jsbridge_base.verifyCall starts"});var n=function(){for(var e=!0,n=0,t=(s=s||[]).length;n<t;n++)if(!u.verifiedMap[s[n]]){e=!1;break}if(!0===e)return window.logInfo&&logInfo("verifyCall",s," has been verified"),l.err_msg="preVerifyJSAPI:ok",void(d&&d(!0,l));u.jsapiQueue.run(function(e){var a=this,n=!0;if(null!=e){e.verifiedList=e.verifiedList||[];for(var t=0,i=s.length;t<i;t++)if(null==e.verifiedList[s[t]]){n=!1;break}}if(null!=e&&!0===n){var r={};window.logInfo&&logInfo("verifyCall",e," same act call next times"),r=1==e.ret?(l.res=e.res,l):e.res,d&&d(e.ret,r),a.done(e)}else window.logInfo&&logInfo("verifyCall",l," start call verifyjsapi by preVerifyJSAPI"),window.ReportLuggage&&window.NavigationStart&&window.ReportLuggage.previrifyBgn((new Date).getTime()-window.NavigationStart,(new Date).getTime(),window.NavigationStart),p("preVerifyJSAPI",{verifyJsApiList:s,verifyAppId:"wx62d9035fd4fd2059",verifyTimestamp:l.timestamp||u.timestamp,verifyNonceStr:l.noncestr||u.noncestr,verifySignType:"sha1",verifySignature:l.signature||u.signature},function(e){window.logInfo&&logInfo("verifyCall",e," call verifyjsapi by preVerifyJSAPI end");var n={},t=null;if(e&&-1!=(e.err_msg||e.errMsg||"").indexOf(":ok")){t=!0,window.ReportLuggage&&window.NavigationStart&&window.ReportLuggage.previrify((new Date).getTime()-window.NavigationStart,(new Date).getTime(),window.NavigationStart),!window.performance||!window.performance.timing.navigationStart||window.WxGamePerformanceParams&&window.WxGamePerformanceParams.WebPreVerifyTime||(window.WxGamePerformanceParams=window.WxGamePerformanceParams||{},window.WxGamePerformanceParams.WebPreVerifyTime=(new Date).getTime()-window.performance.timing.navigationStart);for(var i=0,r=(s=s||[]).length;i<r;i++)u.verifiedMap[s[i]]=!0}else for(c.EndLogic({err_msg:"jsbridge_base.verifyCall_fail"+JSON.stringify(e)}),t=!1,i=0,r=(s=s||[]).length;i<r;i++)u.verifiedMap[s[i]]=!1;var o={ret:t,res:e,verifiedList:s};n=1==o.ret?(l.res=o.res,l):o.res,d&&d(o.ret,n),a.done(o)})})};g.window.WeixinJSBridge?n.call(g.window):g.window.document.addEventListener("WeixinJSBridgeReady",function(){n.call(g.window)})}function l(e){var n=this;e=e||function(){},g.window.WeixinJSBridge?(window.ReportLuggage&&window.NavigationStart&&!window.reportJsbridgeReadyBgn&&(window.ReportLuggage.jsbridgeReadyBgn((new Date).getTime()-window.NavigationStart,(new Date).getTime(),window.NavigationStart),window.ReportLuggage.jsbridgeReadyEnd((new Date).getTime()-window.NavigationStart,(new Date).getTime(),window.NavigationStart),window.reportJsbridgeReadyBgn=!0,window.reportJsbridgeReadyEnd=!0),window.hasBridgeTime=(new Date).getTime(),e&&e.call(n,g.window.WeixinJSBridge)):(u.hasNoBridgeTime=(new Date).getTime(),e.isCalled=!1,t&&(u.preReadyAdded||g.window.document.addEventListener("WeixinJSBridgePreReady",function(){u.preReadyAdded=!0,u.bridgeReadyTime1=(new Date).getTime(),0==e.isCalled&&(e.call(n,g.window.WeixinJSBridge),e.isCalled=!0)})),window.ReportLuggage&&window.NavigationStart&&!window.reportJsbridgeReadyBgn&&(window.ReportLuggage.jsbridgeReadyBgn((new Date).getTime()-window.NavigationStart,(new Date).getTime(),window.NavigationStart),window.reportJsbridgeReadyBgn=!0),g.window.document.addEventListener("WeixinJSBridgeReady",function(){window.ReportLuggage&&window.NavigationStart&&!window.reportJsbridgeReadyEnd&&(window.ReportLuggage.jsbridgeReadyEnd((new Date).getTime()-window.NavigationStart,(new Date).getTime(),window.NavigationStart),window.reportJsbridgeReadyEnd=!0),!window.performance||!window.performance.timing.navigationStart||window.WxGamePerformanceParams&&window.WxGamePerformanceParams.JsapiReadyTime||(window.WxGamePerformanceParams=window.WxGamePerformanceParams||{},window.WxGamePerformanceParams.JsapiReadyTime=(new Date).getTime()-window.performance.timing.navigationStart),u.bridgeReadyTime2=(new Date).getTime(),0==e.isCalled&&(e.call(n,g.window.WeixinJSBridge),e.isCalled=!0)}))}function p(i,r,o){l(function(e){var n=u.WXGAME||{},t=(f=n.baseQualityReport||f).StartLogic(f.LOGIC_CONST.TypeTextEnum.JSAPI,i,r,null);e.invoke(i,r,function(e){w.logInfo(i,r,e),t.EndLogic(e),o&&o(e)})})}function d(n,e){n in a||(a[n]=[],g.window.WeixinJSBridge.on(n,function(e){!function(e,n){if(e in a)for(var t=0,i=a[e].length;t<i;t++)a[e][t](n),a[e][t].called=!0}(n,e)}));for(var t=0,i=a[n].length;t<i;t++)if(e==a[n][t])return;a[n].push(e)}i=u._wxBridge_base?u._wxBridge_base:{apis:r,menuItems:o,getBridge:l,verifyCall:s,invoke:p,call:p,on:function(e,n){g.window.WeixinJSBridge?d(e,n):l(function(){d(e,n)})},filterOptionMenu:function(n,t){s(r,(n=n||{})||{},function(e){t&&"function"==typeof t&&t(e),n&&!n.noHide&&p("hideMenuItems",{menuList:o})})},getA8key:function(r){var n,e=u.WXGAME||{},o=(f=e.baseQualityReport||f).StartRunner("jsbridge_base.getA8key",{},null),a=0;(r=r||function(){}).isCbkCalled=!1,n=r,!g.window.onGetA8KeyUrlOned&&g.window.WeixinJSBridge&&g.window.WeixinJSBridge.on("onGetA8KeyUrl",function(e){window.logInfo&&logInfo("getUinKey",e,"get Login from Event onGetA8KeyUrl"),!1===n.isCbkCalled&&(n.isCbkCalled=!0,n&&n(e,"a8keyonGetA8KeyUrl"))}),g.window.onGetA8KeyUrlOned=!0;var s=function(){p("getWePkgAuthResult",{},function(e){window.logInfo&&logInfo("getA8key",e,"get Login from getWePkgAuthResult");var n=(""+e.err_msg).replace(/[\s_]/g,"").toLowerCase(),t=-1!=n.indexOf("notreturn")||-1!=n.indexOf("failfullurlempty");if(-1!=n.indexOf(":ok"))!1===r.isCbkCalled&&(r.isCbkCalled=!0,r&&r(e,"a8keygetWePkgAuthResult"));else{if(t){if(++a<=5)return window.logError&&logError("getA8key",e,"trying "+a+" times getWePkgAuthResult"),void setTimeout(s,500);var i="try "+a+" times getWePkgAuthResult Failed";return window.logError&&logError("getA8key",e,i,"I got no onGetA8KeyUrl Event, Page all crashed"),o.EndLogic({err_msg:i}),void(!1===r.isCbkCalled&&(r.isCbkCalled=!0,r&&r({err_msg:i},"wepkgToUrl")))}-1!=n.indexOf("offline")?!1===r.isCbkCalled&&(r.isCbkCalled=!0,r&&r({err_msg:"fail_offline"},"wepkgOfflineToUrl")):(o.EndLogic({err_msg:"unknow getA8key",res:e}),!1===r.isCbkCalled&&(r.isCbkCalled=!0,r&&r({err_msg:"unknow getA8key"},"unknow")))}})};s.call(u)}},u._wxBridge_base=i,c.exports=n||i}(window,window.document)},function(e,n,t){var i=t(0);function o(e,n){var t=""+(e||"");return n&&(t=t.replace(/<[^>]+>/g,"")),t.replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/\"/gm,"&quot;").replace(/\'/gm,"&#39;")}i.window,e.exports={format:function(e,i,r){return void 0===r&&(r=!0),r=!!r,(e+="").replace(/\{(\w+)\}/g,function(e,n){var t=void 0!==i[n]?i[n].toString():e;return r?o(t):t})},filterXSS:o,mapToStr:function(e,n,t){try{n=n||"&",t=t||"=";var i=[];for(var r in e)i.push(r+t+e[r]);return i.join(n)}catch(e){alert(e.message)}},strToMap:function(e,n,t){n=n||"&",t=t||"=";var i=e.split(n),r={};for(var o in i){var a=i[o].split(t);2==a.length&&(r[a[0]]=a[1])}return r},trim:function(e){return(e&&e.replace?e:"").replace(/(^\s*)|(\s*$)/g,"")},isIOS:function(){return/(iPhone|iPad|iPod|iOS)/i.test(i.window.navigator.userAgent)},filterArrXSS:function(e,n){for(var t=0,i=(e=e||[]).length;t<i;t++)e[t]=o(e[t],n);return e},filterImg:function(e){var n=/android/i.test(i.window.navigator.userAgent),t=(e+"").replace(/^\s*https?:\/\//i,"").replace(/^\s*\/\//,"");return/^\/[^\/]/i.test(e)?e:(n?"http:":location.protocol)+"//"+t},insertHTMLFilterXss:function(e,n,t){if("object"==typeof e){n=e.elem,t=e.unXss;var i=e.position,r=t?e.data:o(e.data);n.insertAdjacentHTML(i,r)}else"string"==typeof e&&(n.innerHTML=t?e:o(e))},filterUrlByKey:function(r,e){return e.forEach(function(e,n){var t=new RegExp("[?&]("+e+"=([^&]*))","i"),i=r.match(t);i&&2<i.length&&(""==i[2]||"undefined"==i[2]||"0"==i[2])&&(r=r.replace(i[1],"").replace(/(\?|\&)\&/g,"$1"))}),r},exencodeURIComponent:function(e){var n=decodeURIComponent(e),t=!1;try{JSON.parse(n),t=!0}catch(e){t=!1}return t?encodeURIComponent(n):n!=e?e:encodeURIComponent(e)}}},function(e,n,t){var i=t(1).getQueryStr,l=t(0),r={},o=l.window.navigator.userAgent,a=/(iPhone|iPad|iPod|iOS)/i.test(o),s=/(Android)/i.test(o),d=-1!=o.indexOf("MicroMessenger"),c=-1!=o.indexOf("WindowsWechat"),u=!1,p=/(MSDK)/i.test(o),g=/MSDK\/[\d\.]{1,}?a/i.test(o),f=/MSDK\/[\d\.]{1,}?i/i.test(o);/Android|BlackBerry|IEMobile|iPhone|iPad|iPod/.test(o)||(u=!0),r.isiOS=a||f,r.isLuggage=/Luggage/i.test(o),r.isPad=/iPad/i.test(o),r.isiOS9=a&&-1!=o.indexOf("OS 9"),r.isiOS10=a&&-1!=o.indexOf("OS 10"),r.isiOS11=a&&-1!=o.indexOf("OS 11"),r.isAndroid=s||g,r.isWechat=d,r.isPcWechat=c,r.isPC=u,r.isMSDK=p,r.isAndroidMSDK=g,r.isIosMSDK=f,r.deviceType=function(){var e=l.window.navigator.userAgent,n={iPhone:0,iPad:0,iPod:0,Android:0},t={};for(var i in n){var r=new RegExp(i,"i");if(t[i]=r.test(e)?i:n[i],t[i])return i.toLowerCase()}return""}(),r.versionCompare=function(e,n){for(var t=e.split("."),i=n.split("."),r=0,o=Math.min(t.length,i.length);r<o;r++){var a=parseInt(t[r])-parseInt(i[r]);if(0!=a)return a}return t.length-i.length},function(e){var n=o.match(/OS[\s]+(\d{1,2}?)_\d{1}/);if(2<=(n=n||[]).length){var t=parseInt(""+n[1]);e.iOSVersion=isNaN(t)?0:t}}(r),r.clientVersion=function(e){var n=(l.window.navigator.userAgent||l.window.navigator.wxuserAgent).match(/MicroMessenger\/([\d\.]+)/i),t="",i=[1e3,100,1],r=0;if(n&&1<n.length&&(t=n[1]),e)return t;for(var o=0,a=(t=t.split(".").slice(0,3)).length;o<a;o++){var s=parseInt(t[o].substr(0,2));isNaN(s)||(r+=s*i[o])}return r},r.getNetworkType=function(){var e=(l.window.navigator.userAgent||l.window.navigator.wxuserAgent).match(/NetType\/[^\s]+/i),n="",t={wifi:0,uninet:2,uniwap:2,cmnet:2,cmwap:2,ctnet:2,ctwap:2,"2g":2,"3g":3,"3gnet":3,"3gwap":3,nonwifi:3,"4g":4,lte:4,ctlte:4,"3g+":4,"4gnet":4};return e&&1<=e.length&&(n=e[0].split("/")[1].toLowerCase()),n in t?t[n]+"":"1"},r.isWepkgInUrl=function(){return!!i("wechat_pkgid",null,l.window)},r.isWepkg=function(){var e=this.isWepkgInUrl(),n=this.clientVersion(!0);if(0<=this.versionCompare(n,"6.5.9")){var t=l.window.__usewepkg__;return null!=t&&!!t&&e}n=this.clientVersion(!0);var i=this.isAndroid?"6.5.6":"6.5.8";return 0<=this.versionCompare(n,i)&&e},r.getIsInMiniAppAsync=function(e){var n,t=l.window.__wxjs_environment,i=l.window.userAgent||"";if(t||i){var r="miniprogram"===t||-1!=i.indexOf("miniprogram");e(r)}else"function"==typeof e&&l.document.addEventListener("WeixinJSBridgeReady",function(){n&&(clearTimeout(n),n=null),e("miniprogram"===l.window.__wxjs_environment)},!1),n=setTimeout(function(){e&&e(!1)},2e3)},e.exports=r},function(n,e,t){var f,m,w=t(3),i=t(0);window,document,f="yes"===window.__wxjs_is_wkwebview||window.__wxjs_is_wkwebview||"yes"===i.window.__wxjs_is_wkwebview||i.window.__wxjs_is_wkwebview||-1!=i.window.navigator.userAgent.indexOf("WindowsWechat"),m=['<div class="wgui-dialog {titleClass} {singleLineClass}">','    <div class="wgui-dialog__mask"></div>','    <div class="wgui-dialog__main">','        <div class="wgui-dialog__header">','            <div class="wgui-dialog__title">',"                {title}","            </div>","        </div>",'        <div class="wgui-dialog__body">','            <div class="wgui-dialog__content {isLeftClass} {isSmallClass}" style="{appendStyle}" >',"                {content}","            </div>","        </div>",'        <div class="wgui-dialog__footer">',"            \x3c!--搴曢儴鎸夐挳鏀寔 1 & 2 涓暟閲�--\x3e","            \x3c!--娣诲姞 wgui-dialog__btn_current 楂樹寒--\x3e",'            <a href="javascript:;" class="wgui-dialog__btn"  id="close_{gid}" style="display:{btnStyle}">{closeTxt}</a>','            <a href="javascript:;" class="wgui-dialog__btn wgui-dialog__btn_current" id="confirmTxt_{gid}">{confirmTxt}</a>',"        </div>","    </div>","</div>"],function(e){function u(e,n,t){e.addEventListener?e.addEventListener(n,t,!1):e.attachEvent?e.attachEvent("on"+n,t):e["on"+n]=t}var p=[],g=function(){var e=p.pop();e&&(f?(e.confirmObj.removeEventListener("click",e.confirmHander,!1),e.closeObj.removeEventListener("click",e.closeHander,!1)):(e.confirmObj.removeEventListener("touchend",e.confirmHander,!1),e.closeObj.removeEventListener("touchend",e.closeHander,!1)),e.confirmObj=null,e.closeObj=null,document.body.removeChild(document.getElementById(e.name)))};e.alert=function(e,t){t=t||{};var n={name:"name_"+(new Date).getTime(),icon:"",alertStr:"",title:"",content:"",noticeTxt:"",confirmTxt:"纭畾",isLeft:!1,confirmCb:function(){},closeTxt:"鍙栨秷",closeCb:function(){},openCb:function(){},calller:window,closeAfterClick:!0,style:"oneBtn",zoom:!1,needScroll:!1,isSmallClass:!1,isContentDividedIntoUL:!1,isSingleLine:!0};for(var i in n)i in t||(t[i]=n[i]);if(0!=function(e){for(var n=location.protocol,t=document.getElementsByTagName("link"),i=!1,r=0,o=t.length;r<o;r++){var a=t[r].getAttribute("href");if(-1!=a.indexOf("wgui")||-1!=a.indexOf("wui")){i=!0;break}}if(!1===i){var s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("href",n+"//wximg.qq.com/tmt/game/dist/css/wgui.1.0.1.min.css?max_age=2592000"),document.getElementsByTagName("head")[0].appendChild(s),i=!0}return i}()){if(t.alertStr=e||t.alertStr,t.isContentDividedIntoUL){var r=t.alertStr.replace(/(^|\n)\d\./g,"");t.content=r.replace(/[^\n]+/g,function(e,n){return"\n"===e?"":"<li>"+e+"</li>"}),t.content="<ul>"+t.content+"</ul>"}else t.content=(t.alertStr+"").replace(/\n/g,"<br/>");if(t.singleLineClass=t.isSingleLine?"wgui-dialog_single-line":"",t.code&&(t.content+='<span style="color: rgba(128,128,128,0.1);font-size: 0.6em;margin-top: -0.3em;display: block;position: absolute;bottom: 4.2em;right: 3px;">'+t.code+"</span>"),t.title=t.title||t.noticeTxt,t.titleClass=void 0!==t.title&&0<t.title.length?"":"wgui-dialog_without-title",t.style in{oneBtn:1,twoBtn:1}){t.btnStyle="oneBtn"==t.style?"none":"",t.isLeftClass=!0===t.isLeft?"wgui-dialog__content_left":"",t.isSmallClass=!0===t.isSmallClass?"wgui-dialog__content_small":"",t.isContentDividedIntoUL=!0===t.isContentDividedIntoUL,t.appendStyle=t.needScroll?"max-height: 270px; overflow-y: scroll; text-align: left; word-break: break-word":"";var o,a,s=document.createElement("div"),l=(t.name,{});a=m,o="__alert__"+(new Date).getTime()+"__"+parseInt(100*Math.random()),s.id=o,t.gid=o;var d=a.join("").replace(/\{(\w+)\}/g,function(e,n){return void 0!==t[n]?t[n].toString():e});t.zoom&&window.Bigger&&setTimeout(function(){Bigger(s,320,!0)},30),w.insertHTMLFilterXss(d,s,!0),document.body.appendChild(s);var c={iconObj:document.getElementById("icon_"+o),alertObj:document.getElementById("alertStr_"+o),confirmObj:document.getElementById("confirmTxt_"+o),closeObj:document.getElementById("close_"+o)};0==t.showClose&&c.closeObj&&(c.closeObj.style.display="none"),0==t.showIcon&&c.iconObj&&(c.iconObj.style.display="none"),l.confirmHander=function(e){t.confirmCb.call(t.calller),t.closeAfterClick&&g(),e.preventDefault(),e.stopPropagation()},l.closeHander=function(e){t.closeCb.call(t.calller),t.closeAfterClick&&g(),e.preventDefault(),e.stopPropagation()},l.openHander=function(e){t.openCb.call(t.calller),e&&e.preventDefault(),e&&e.stopPropagation()},l.name=o,l.confirmObj=c.confirmObj,l.confirmCb=t.confirmCb,l.closeObj=c.closeObj,l.closeCb=t.closeCb,f?(u(c.confirmObj,"click",l.confirmHander),u(c.closeObj,"click",l.closeHander)):(u(c.confirmObj,"touchend",l.confirmHander),u(c.closeObj,"touchend",l.closeHander)),u(c.confirmObj,"click",l.confirmHander),u(c.closeObj,"click",l.closeHander),p.push(l),l.openHander.call(t.calller),s.firstElementChild}else alert("style invalid")}},e.closeAlert=g,n.exports=e}({})},function(e,n){function l(e,n,t,i){var r,o=this,a=i;function s(e){return!!r&&(clearTimeout(r),r=null,"ok"!=e&&(n=e,o.onError(a,n)),!0);var n}if(e&&(-1!==e.indexOf("?")?e+="&QB&":e+="?&QB&"),this.method=n||"POST",this.url=e,this.async=!0,this.content="",this.timeout=t,this.timeArr=[],this.status=0,this.onComplete=function(){},this.onError=function(){},a||(a=l.newXhr()),!a)return!1;a.timeArr=[],a.timeArr.push(Math.floor((new Date).getTime())),this.headers={},this.abort=function(){s("abort"),a.abort()},this.abortCustom=function(){s("abortCustom"),a.abort()},this.send=function(e){if(!this.method||!this.url||!this.async)return!1;"object"==typeof this.url&&(this.url=this.url.replace({}));var n,t=this.method.toUpperCase();this.abort(),a.open(t,this.url,this.async),a.timeArr.push(Math.floor((new Date).getTime())),"POST"==t&&(function(e){var n=!1;try{n=!!JSON.parse(e)}catch(e){n=!1}return n}(e)?a.setRequestHeader("Content-Type","application/json; charset=utf-8"):a.setRequestHeader("Content-Type","application/x-www-form-urlencoded")),function(e,n,t,i){if(e)if(null!=e.length){var r,o=e.length;r=i<o?i:o;for(var a=0;a<r;a++)try{if(!1===n(e[a],a))break}catch(e){}}else for(var a in e)try{if(!1===n(e[a],a))break}catch(e){}}(this.headers,function(e,n){a.setRequestHeader(n,e)}),a.ontimeout=this.onTimeout||function(){},a.timeout=this.timeout||15e3,a.onreadystatechange=function(){a.timeArr.push(Math.floor((new Date).getTime())),4===a.readyState&&(200===a.status?s("ok")&&o.onComplete(a):s([a.statusText,a.status,a.timeout].join("_")))},n=(this.timeout||15e3)+1e3,r||(r=setTimeout(function(){o.abort()},n));try{if("POST"==t){var i=[e||this.content,""].join("");a.send(i)}else a.send(null)}catch(e){s(e.message)}return!0}}l.newXhr=function(e){var n=e||window,t=function(){};if(n.ActiveXObject)try{return new n.ActiveXObject("MSXML2.XMLHTTP")}catch(e){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(e){return{send:t,open:t,setRequestHeader:t,abort:t}}}return n.XMLHttpRequest?new n.XMLHttpRequest:{send:t,open:t,setRequestHeader:t,abort:t}},e.exports=l},function(e,n,s){var t=s(11),l=s(8),o=s(4),a=s(0).window,d={TypeEnum:{CGI:0,LOGIC:1,CSS:2,JS:3,IMAGE:4,JSAPI:5,COMMLIB:6},TypeTextEnum:{CGI:"CGI",LOGIC:"LOGIC",CSS:"CSS",JS:"JS",IMAGE:"IMAGE",JSAPI:"JSAPI",COMMLIB:"COMMLIB"}},c=function(e){return Object.prototype.toString.call(e).replace(/\]/g,"").split(" ")[1]},u=function(){var n=new t;n.setSync();var r=!1;return function(i,e){e&&n.run(function(){var t=this;if(!0===r)setTimeout(function(){t.done()},0);else{if(!e.verifyJsapi)return void t.done();e.verifyJsapi(e.apis,function(e,n){!0===e?r=!0:l.logError("EndLogic","get jsapi reportGameWeb failed"),t.done()})}}),n.run(function(){var t=this,e=o.clientVersion(!0);if(o.versionCompare(e,"7.0.0")<0)t.done();else{var n=function(){a.WeixinJSBridge.invoke("reportGameWeb",{type:"2",isReportNow:"1",data:i},function(e){t.done();var n=!1;o.isiOS&&(n="0"!=e.result),o.isAndroid&&(n=-1==e.err_msg.indexOf(":ok")),n&&l.logError("EndLogic","jsapi reportGameWeb call fail",e,i)})};window.WeixinJSBridge?n():window.document.addEventListener("WeixinJSBridgeReady",function(){n()})}})}}();function i(i,r,o,e){var a=(new Date).getTime();if(null!=i&&!(i in d.TypeEnum))throw"Illegal StartLogic Params: type, see LOGIC_CONST.js";if(null!=r&&"String"!=c(r))throw"Illegal StartLogic Params: target,need string";if(null!=o&&"Object"!=c(o))throw"Illegal StartLogic Params: params,need a json";return{EndLogic:function(e){var n=(new Date).getTime(),t={Type:d.TypeEnum[i],Target:encodeURIComponent(r+"").substr(0,1024),Params:encodeURIComponent(JSON.stringify(o)).substr(0,1024),Result:encodeURIComponent(JSON.stringify(e)).substr(0,1024),CostTime:n-a};l.logInfo("EndLogic","this means i called reportGameWeb seriously",i,r,o,e),i===d.TypeTextEnum.JSAPI&&s(25).isOK(r,e)||u.call(this,{30:t.Type,31:t.Target,32:t.Params,33:t.Result,34:t.CostTime},void 0)}}}e.exports={StartRunner:function(e,n,t){return i(d.TypeTextEnum.LOGIC,e,n)},StartLogic:i,LOGIC_CONST:d}},function(e,n,t){(function(e){var a=function(){var n={};try{top.window&&top.window.document&&(n=top.window)}catch(e){n=window}return n}(),s=function(e,n,t,i){var r={1:"info",2:"warn",3:"error"};e.invoke("log",{msg:["[WXGameH5Log]","["+r[t]+"]","["+n+"]","\n",i,"\n"].join("")}),console.log(["[WXGameH5Log]","["+r[t]+"]","["+n+"]","\n",i,"\n"].join(""))},t=function(e,n,t){var i=window.location.pathname.split(".html");(i=i[0].split("/").slice(-2)).push(e);var r=i.join("_"),o=a.window;o.WeixinJSBridge?s(o.WeixinJSBridge,r,n,t):document.addEventListener("WeixinJSBridgeReady",function(){s(o.WeixinJSBridge,r,n,t)})},i=function(e){return(e=e||[]).map(function(n){if("object"==typeof n)try{n=JSON.stringify(n)}catch(e){n=n}return"string"!=typeof n&&(n=""+n),n})},n={logInfo:function(e){var n=Array.prototype.slice.apply(arguments);n=i(n),t(e,1,n.slice(1).join(" "))},logWarn:function(e){var n=Array.prototype.slice.apply(arguments);n=i(n),t(e,2,n.slice(1).join(" "))},logError:function(e){var n=Array.prototype.slice.apply(arguments);n=i(n),t(e,3,n.slice(1).join(" "))}};(e=e||{}).exports=n}).call(this,t(22)(e))},function(a,e,l){!function(d){var c;if(d.WXGAME&&d.WXGAME.WxBridge)return c=d.WXGAME.WxBridge,a.exports=c;c=l(2),c=l(26);var u=l(0),e=l(1),p=l(4),s=l(6),n=l(11),g=(l(27),l(7));d.getUinKeyQueue=d.getUinKeyQueue||new n,d.getUinKeyQueue.setSync(),d.verifyJsapiQueue=d.verifyJsapiQueue||new n,d.verifyJsapiQueue.setSync();var f=e.getQueryStr,i=u.window.location;function t(n){var t=this;c.getBridge(function(e){n&&n.call(t,e)})}var r,m={firstLogin:{},log:window.logInfo?window.logInfo.bind(window):function(){},buildLoginByObj:function(e){var n=e.full_url||e.fullurl||e.url||"",t=f("uin",n,u.window),i=f("key",n,u.window),r=f("pass_ticket",n,u.window),o=f("abtest_cookie",n,u.window),a=f("access_token",n,u.window),s=f("openid",n,u.window),l={uin:t,key:i,pass_ticket:r,set_cookie:e.set_cookie,abtest_cookie:o,openid:s,access_token:a};if(0<l.uin.length)this.firstLogin=l;else{var d=this.firstLogin;l=d.uin&&0<(""+d.uin).length?d:l}return l},runWepkg:function(i,r,o){var a=this;window.beforeBridgeReady=(new Date).getTime(),t(function(e){if(window.bridgeReadyTime3=(new Date).getTime(),c.a8KeyUrl){window.getA8keyEndTime1=(new Date).getTime();var n=a.buildLoginByObj(c.a8KeyUrl);n.from="a8keyPreGot",n.fullFilled=!0,a.log("getUinKey",c.a8KeyUrl,n.from),a.loginTrigger(i,n,o),r.done(n)}else window.beforeGetA8Key=(new Date).getTime(),c.getA8key(function(e,n){a.log("getUinKey",e,n),window.getA8keyEndTime=(new Date).getTime(),c.a8KeyUrl=e;var t=a.buildLoginByObj(c.a8KeyUrl);t.from=n,t.fullFilled=!0,a.loginTrigger(i,t,o),r.done(t)})})},loginTrigger:function(e,n,t){this.log("getUinKey","last login",n);var i=!!(n&&n.uin&&n.key&&n.pass_ticket),r=n.set_cookie+""=="1";p.isWepkg()&&(i||r||c.callAfterReady(function(){t.EndLogic(n)})),!window.performance||!window.performance.timing.navigationStart||window.WxGamePerformanceParams&&window.WxGamePerformanceParams.GetUinkeyTime||(window.WxGamePerformanceParams=window.WxGamePerformanceParams||{},window.WxGamePerformanceParams.GetUinkeyTime=(new Date).getTime()-window.performance.timing.navigationStart);try{e&&e.call(c,n)}catch(e){console.error("loginTrigger",e)}},UrlFullLogin:function(){var e=this.buildLoginByObj({full_url:null,set_cookie:""},"url");return{isFull:0<e.uin.length&&0<e.key.length&&0<e.pass_ticket.length,login:e}},getUinKey:function(o){var a=this;if(!p.isWechat){var e=a.buildLoginByObj({});if(e.access_token)return void(o&&o(e))}var n=window.WXGAME||{},s=(g=n.baseQualityReport||g).StartRunner("wxBridge.getUinKey",{},null),l=p.isWepkg();d.getUinKeyQueue.run(function(e){if(!0===(e=e||{}).fullFilled)try{var n={};for(var t in e)n[t]=e[t];n.from="byPreCall",a.loginTrigger(o,n,s)}catch(e){console.error(e),this.done({})}finally{this.done(e)}else{var i=a.UrlFullLogin();if(!0===i.isFull)return a.log("getUinKey","isWepkg:"+l," login all in querystr锛宖irst get from url"),(r=i.login).fullFilled=!0,r.from="url",a.loginTrigger(o,r,s),void this.done(r);if(!1===i.isFull)if(l)a.log("getUinKey","isWepkg:"+l),a.runWepkg(o,this,s);else if(p.isWepkgInUrl())a.log("getUinKey","isWepkg:"+l," wepkgid in url,but querystr login is null"),a.runWepkg(o,this,s);else{var r;a.log("getUinKey","isWepkg:"+l," no pkgid in url,run wipe login status"),(r=a.buildLoginByObj({full_url:null,set_cookie:""},"url")).fullFilled=!0,r.wipeLogin=!0,r.from="url",a.loginTrigger(o,r,s),this.done(r)}}})}},o={_qrStr:"",_opt:{loaded:!1},initQryStr:function(e,n){n.uin=e.uin,n.key=e.key,n.pass_ticket=e.pass_ticket,this._qrStr=["uin="+n.uin,"key="+n.key,"pass_ticket="+n.pass_ticket].join("&");var t=this._qrStr;n.loginStr=t,n.from=e.from,n.Referer="Referer="+encodeURIComponent(i.href.split("#")[0]),n.method="GET",n.url="/cgi-bin/comm/genfun?"+t+"&"+n.Referer+"&_="+Math.random()},ajaxGenFun:function(e,t,i){var r=this;window.logInfo&&logInfo("ajaxGenFun"," start ajaxGenFun in login_queue");var o=new s;r.initQryStr(e,o);var n=window.WXGAME||{},a=(g=n.baseQualityReport||g).StartLogic(g.LOGIC_CONST.TypeTextEnum.CGI,o.url,{},null);window.ReportLuggage&&window.NavigationStart&&window.ReportLuggage.genfunBgn((new Date).getTime()-window.NavigationStart,(new Date).getTime(),window.NavigationStart),o.onComplete=function(e){if(window.ReportLuggage&&window.NavigationStart&&window.ReportLuggage.genfunEnd((new Date).getTime()-window.NavigationStart,(new Date).getTime(),window.NavigationStart),-1!=e.responseText.indexOf("{"))0==(n=JSON.parse(e.responseText)).ret?(r._opt.sign=n.data.jsapi_sign,r._opt.sign.loginStr=o.loginStr,r._opt.sign.uin=o.uin,r._opt.sign.key=o.key,r._opt.sign.pass_ticket=o.pass_ticket,r._opt.sign.from=o.from,r._opt.loaded=!0,window.logInfo&&logInfo("ajaxGenFun",n," call genfun success and start call wxBridge.verifyCall"),c.verifyCall(t,this._opt.sign,function(e,n){try{i&&i(e,n)}catch(e){console.error("Your wxBridge.ajaxGenFun callback runtime error ",e)}})):(a.EndLogic({ret:n.ret,res:n,err_msg:"errcode_"+n.ret}),i&&i(!1,{err_code:1,loginStr:o.loginStr,uin:o.uin,key:o.key,from:o.from,pass_ticket:o.pass_ticket,err_msg:"async signature load error"}),window.logError&&logError("ajaxGenFun",n," call genfun fail for ret not 0"));else{var n=JSON.parse(e.responseText);a.EndLogic({ret:n.ret,res:n,err_msg:"errcode_not_json"}),i&&i(!1,{err_code:2,loginStr:o.loginStr,uin:o.uin,key:o.key,from:o.from,pass_ticket:o.pass_ticket,err_msg:"genfun responseText illegal"})}o=null}.bind(r),o.onError=function(e,n){a.EndLogic({ret:n,res:e,err_msg:"errcode_onError_"+n}),i&&i(!1,{err_code:-1,xhr:e,loginStr:o.loginStr,uin:o.uin,key:o.key,pass_ticket:o.pass_ticket,err_msg:n}),o=null,window.logError&&logError("ajaxGenFun",n," call genfun fail for timeout")}.bind(r),o.send(o.Referer?o.Referer:null)},checkIsPreVerified:function(e,n){var t=!0;e=e||{};for(var i=0,r=n.length;i<r;i++)if(!e[n[i]])return!1;return t},verifyJsapi:function(a,s){var t=this;if(window.logInfo&&logInfo("verifyJsapi",a," start call verifyJsapi from stack"),p.isWechat){var e=window.WXGAME||{},l=(g=e.baseQualityReport||g).StartRunner("wxBridge.verifyJsapi",{},null);d.verifyJsapiQueue.run(function(n){var o=this;if(t.checkIsPreVerified(d.verifyJsapiQueue.verifiedMap,a)){try{var e=d.verifyJsapiQueue.verifiedMap.res;e.from="allVerified",l.EndLogic({err_msg:e.from}),s&&s(!0,e)}catch(e){o.done(n)}o.done(n)}else m.getUinKey(function(e){window.logInfo&&logInfo("verifyJsapi",e," start call ajaxGenFun in login_queue"),t.ajaxGenFun(e,a,function(e,n){window.logInfo&&logInfo("verifyJsapi",e,n," end call ajaxGenFun in login_queue"),e||l.EndLogic({err_msg:{code:e,res:n}}),l.EndLogic({err_msg:"wxBridge.verifyJsapi ends"});try{s&&s.call(c,e,n)}catch(e){console.error("Your wxBridge.verifyJsapi callback runtime error ",e)}var t=d.verifyJsapiQueue.verifiedMap||{};if(!0===e)for(var i=0,r=a.length;i<r;i++)t[a[i]]=!0;t.res=n,d.verifyJsapiQueue.verifiedMap=t,o.done(t)}.bind(t))}.bind(t))})}else s&&s(!0,{err_msg:"preverifyJSAPI:ok"})}};c.getUinKey=m.getUinKey.bind(m),c.callAfterReady=t,c.verifyJsapi=o.verifyJsapi.bind(o),r=d.WXGAME&&d.WXGAME.WxBridge?d.WXGAME.WxBridge:c,a.exports=r}(window)},function(e,n){e.exports={setKeyValue:function(n,t){try{localStorage.setItem(n,t)}catch(e){-1!=e.toString().indexOf("QuotaExceeded")&&(localStorage.clear(),localStorage.setItem(n,t))}},getKeyValue:function(e){return localStorage.getItem(e)},delKeyValue:function(e){localStorage.removeItem(e)}}},function(e,n){var i="Parallel",r="Relevant",t=function(){this.queueArr=[],this.QueueType="",this.onceStarted=!1};t.prototype.setSync=function(){this.QueueType="Sync",this.onceStarted=!1,this.done=function(e){var n=this.queueArr.shift();this.queueArr.length<=0&&(this.onceStarted=!1),"function"==typeof n&&setTimeout(function(){n.call(this,e)}.bind(this),0)}.bind(this)},t.prototype.setParallel=function(){this.QueueType=i,this.done=function(e){}.bind(this)},t.prototype.setRelevant=function(){this.QueueType=r,this.onceStarted=!1,this.done=function(e){for(0<this.queueArr.length&&(this.queueArr[0].backFn.call(this,e),this.queueArr.shift());next=this.queueArr.shift();)"function"==typeof next.backFn&&setTimeout(function(){next.backFn.call(this,e)}.bind(this),0);this.onceStarted=!1}.bind(this)},t.prototype.run=function(t){switch(this.QueueType){case"Sync":!function(e,n){if("function"==typeof n&&(e.queueArr.push(n),!1===e.onceStarted)){var t=e.queueArr.shift();if("function"!=typeof t)throw"fatal error for no function in queue";e.onceStarted=!0,setTimeout(function(){t.call(e)},0)}}(this,t);break;case i:!function(e,n){if("function"!=typeof t)throw"faltal error for no function in queue";t.call(e)}(this);break;case r:!function(e,n){if(e.queueArr.push(n),!1===e.onceStarted){var t=e.queueArr[0];t&&"function"==typeof t.fn?(e.onceStarted=!0,setTimeout(function(){t.fn.call(e)},0)):console.error("_runRelevant:",t," is illegal")}}(this,t)}},e.exports=t},function(e,n){var l=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1];e.exports={base64decode:function(e){var n,t,i,r,o,a,s;for(a=e.length,o=0,s="";o<a;){for(;n=l[255&e.charCodeAt(o++)],o<a&&-1==n;);if(-1==n)break;for(;t=l[255&e.charCodeAt(o++)],o<a&&-1==t;);if(-1==t)break;s+=String.fromCharCode(n<<2|(48&t)>>4);do{if(61==(i=255&e.charCodeAt(o++)))return s;i=l[i]}while(o<a&&-1==i);if(-1==i)break;s+=String.fromCharCode((15&t)<<4|(60&i)>>2);do{if(61==(r=255&e.charCodeAt(o++)))return s;r=l[r]}while(o<a&&-1==r);if(-1==r)break;s+=String.fromCharCode((3&i)<<6|r)}return s}}},function(e,n,t){var h=t(6),y=t(3),x=t(0),_=t(1),b=(t(16),t(9)),k=t(7),S=_.getQueryStr,T=t(8),i=window;i.WXGAME&&i.WXGAME.xhrCallCgi?e.exports=i.WXGAME.xhrCallCgi:e.exports=function(p,g,f,m){var w=this,v=g||{};b.getUinKey(function(e){if("string"==typeof v)try{v=JSON.parse(v)}catch(e){v=y.strToMap(v)}v.method=v.method||"GET";var n=v.timeout||3e4,t=v.method,i={uin:e.uin,key:e.key},r={pass_ticket:e.pass_ticket},o=S("abtest_cookie",null,x.window),a=S("abt",null,x.window);v.abtest_cookie=v.abtest_cookie||o,v.abt=v.abt||a;var s={};if(e.openid&&(s.openid=e.openid),e.access_token&&(s.access_token=e.access_token),"get"===t.toLowerCase())r.pass_ticket&&!S("pass_ticket",p)&&(v=_.extend(v,r)),i.uin&&!S("uin",p)&&(v=_.extend(v,i)),s.access_token&&!S("access_token",p)&&(v=_.extend(v,s)),p=p+(-1==p.indexOf("?")?"?":"&")+y.mapToStr(v);else{var l={};l.abtest_cookie=v.abtest_cookie,l.abt=v.abt,r.pass_ticket&&!S("pass_ticket",p)&&(l=_.extend(l,r)),i.uin&&!S("uin",p)&&(l=_.extend(l,i)),s.access_token&&!S("access_token",p)&&(l=_.extend(l,s)),p=p+(-1==p.indexOf("?")?"?":"&")+y.mapToStr(l)}var d=window.WXGAME||{},c=(k=d.baseQualityReport||k).StartLogic(k.LOGIC_CONST.TypeTextEnum.CGI,p,v,b),u=new h(p,t,n);return(new Date).getTime(),u.onComplete=function(e){var n,t={},i=(e.responseText||"").replace(/[\u0000-\u001f\u000B\u000C\u00A0\uFEFF\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u202E\u202D]/g,"");try{t=JSON.parse(i)}catch(e){try{t=new Function("return "+i)()}catch(e){t={}}}T.logInfo("xhrCallCgi","onComplete",p,t),f&&f.call(w,t),(new Date).getTime(),0!=1*(n="ret"in t?t.ret:t.base&&"ret"in t.base?t.base.ret:"errcode"in t?t.errcode:9999)&&c.EndLogic({errcode:n}),window._reportlist_&&window._reportlist_.push({type:0,url:p,status:n,cost_time:{pa:e.timeArr[1]-e.timeArr[0],pb:e.timeArr[2]-e.timeArr[1],pc:e.timeArr[3]-e.timeArr[2],pd:e.timeArr[4]-e.timeArr[3]}});try{t&&t.report_info&&t.report_info.exp_rpt_list&&0<t.report_info.exp_rpt_list.length&&(window._expRptList_=(window._expRptList_||[]).concat(t.report_info.exp_rpt_list))}catch(e){}},u.onError=function(n,e){c.EndLogic({errcode:e}),"ok"!=e&&m&&m.call(w,e);var t,i={};try{i=new Function("return "+n.responseText)()||{}}catch(e){i={responseText:n.responseText}}T.logError("xhrCallCgi","onError",n,i,e),(new Date).getTime();try{t=isNaN(i.errcode)?isNaN(i.ret)?999999:i.ret:i.errcode}catch(e){t=404}"ret"in i?i.ret=i.ret:i.base&&"ret"in i.base?i.ret=i.base.ret:i.ret="errcode"in i?i.errcode:0,window._reportlist_&&window._reportlist_.push({type:0,url:p,status:t,cost_time:{pa:n.timeArr[1]-n.timeArr[0],pb:n.timeArr[2]-n.timeArr[1],pc:n.timeArr[3]-n.timeArr[2],pd:n.timeArr[4]-n.timeArr[3]}})},"string"==typeof g?(T.logInfo("xhrCallCgi",p,g,n),u.send(g)):(T.logInfo("xhrCallCgi",p,g,n),u.send(y.mapToStr(v))),u})}},function(v,e,o){!function(l){"use strict";var e=o(0),n=o(12),t=o(1),i=o(10),d=o(4),c=t.getQueryStr,u=n.base64decode,p=i.getKeyValue,g=o(23),f={},m={},r=e.window.navigator.userAgent;function w(e){-1!==e.indexOf("?")?e+="&QB&":e+="?&QB&",new Image(1,1).src=e}f.isiOS=d.isiOS,f.isAndroid=d.isAndroid,f.isWechat=d.isWechat,f.isiOS9=d.isiOS9,f.isPcWechat=d.isPcWechat,function(e){if(f.isWechat){var n=e.split("MicroMessenger/")[1];m.networktype=d.getNetworkType(n),m.clientversion=d.clientVersion(),m.device=f.isAndroid?"android":f.isiOS?"iphone":"0"}var t=c("from",null,top),i={singlemessage:1,groupmessage:2,timeline:4,message:10};t&&t in i&&(m.sourcescene=i[t],i=null);var r=c("noticeid")||c("noticeid",null,top);r&&1<r.length?m.noticeid=r:m.noticeid=l.noticeid||l.nNoticeID||l.nNoticeId||66043145;var o=c("actid")||c("actid",null,top)||c("act_id")||c("act_id",null,top)||l.actid||l.iActID||l.iActId||0;o&&(m.actid=o);var a=u(decodeURIComponent(c("uin",null,top)))||p("uin")||0;a&&(m.uin=a),f.reportObj=m,f.imgReport=w;var s=g(f,!0);v.exports=s}(r)}(window)},function(e,n,t){var s=t(6),i=(t(16),t(24)),r=t(0);function l(e,n,t){"use strict";try{n=n||(t?r.window.location.search:location.search)}catch(e){n=n||location.search}if(-1<n.indexOf("wechat_pkgid=")&&("uin"===e||"key"===e||"pass_ticket"===e))return window.wepkgLoginInfo&&window.wepkgLoginInfo[e]?window.wepkgLoginInfo[e]:"";var i=n.match(new RegExp("[?&]"+e+"=([^&]+)","i"));return null==i||i.length<=1?"":i[1]}function d(){return"uin="+l("uin","",1)+"&key="+l("key","",1)+"&pass_ticket="+l("pass_ticket","",1)}function c(){return u({auth_type:2,m_sig:l("sig")||"",m_timestamp:l("timestamp")||"",m_algorithm:l("algorithm")||"",m_version:l("version")||"",m_encode:l("encode")||"",appid:l("appid")||l("gamekey")||"",m_param:l("msdkEncodeParam")||""})}function u(e,n,t){try{n=n||"&",t=t||"=";var i=[];for(var r in e)i.push(r+t+e[r]);return i.join(n)}catch(e){alert(e.message)}}var p=function(e,n){var t,i={};for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t]);for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(i[t]=n[t]);return i};function o(e){return(e||"").toString().replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/\"/gm,"&quot;").replace(/\'/gm,"&#39;")}function g(){var e=navigator.userAgent,n=/(Android)/i.test(e),t=-1!==e.indexOf("MicroMessenger"),i=-1!==location.search.indexOf("debug=1"),r=(e||navigator.wxuserAgent).match(/MicroMessenger\/([\d\.]+)/i),o="";r&&1<r.length&&(o=r[1]);var a=/micromessenger/i.test(navigator.userAgent)&&/windowswechat/i.test(navigator.userAgent),s=!1;return/Android|BlackBerry|IEMobile|iPhone|iPad|iPod/.test(navigator.userAgent)||(s=!0),{isIOS:f(),isPad:/iPad/i.test(navigator.userAgent),isAndroid:n,isWechat:t,isDebug:i,wxVersion:o+"",isWPcWechat:a,isPC:s}}function f(){return/(iPhone|iPad|iPod)/i.test(navigator.userAgent)}function a(e,n){var t="/pages/webview/webview?";if(n)for(var i in n)t+=i+"="+n[i]+"&";else t+="target=h5";"&"!=t.slice(-1)[0]&&(t+="&"),WeixinJSBridge.invoke("invokeMiniProgramAPI",{name:"navigateTo",arg:{url:t+"url="+encodeURIComponent(e)}},function(e){console.log(JSON.stringify(e))})}function m(e){var n=(navigator.userAgent||navigator.wxuserAgent||str).match(/MicroMessenger\/([\d\.]+)/i),t="";if(!(n&&1<n.length))return!1;t=(t=n[1]).split("."),e=e.split(".");for(var i=0;i<t.length&&i<e.length;i++){if((+t[i]||0)>(+e[i]||0))return!0;if((+t[i]||0)<(+e[i]||0))return!1}return!1}e.exports={getQueryStr:l,getUserLoginParamsStr:d,getUserLoginParams:function(){return{uin:l("uin","",1),key:l("key","",1),pass_ticket:l("pass_ticket","",1)}},mapToStr:u,ajaxRequest:function(e,n,i,t,r){if("function"==typeof r)var o=r;else if("object"==typeof r){var a=p({method:"GET",timeout:15e3},r);o=arguments[5]}else a={};return-1===e.indexOf("?")?e+="?":e+="&","POST"===a.method?e+="2"!==l("auth_type")||g().isWechat?d():c():e=e+u(n)+"&"+("2"!==l("auth_type")||g().isWechat?d():c()),this._QMAjax=new s(e,a.method,a.timeout),(new Date).getTime(),this._QMAjax.onComplete=function(e){var n={},t=(e.responseText||"").replace(/[\u0000-\u001f\u000B\u000C\u00A0\uFEFF\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u202E\u202D]/g,"");try{n=JSON.parse(t)}catch(e){try{n=new Function("return "+t)()}catch(e){n={}}}i&&i(n),(new Date).getTime()},this._QMAjax.onError=function(e,n){"ok"!==n&&t&&t(n);try{JSON.parse(e.responseText)}catch(n){e.responseText}(new Date).getTime()},this._QMAjax.onTimeout=o,"string"==typeof n?this._QMAjax.send(n):this._QMAjax.send(u(n)),this._QMAjax},extend:p,tmpl:function(e,t,i){return(e+="").replace(/\{(\w+)\}/g,function(e,n){return void 0!==t[n]?i?t[n].toString():o(t[n].toString()):e})},filterXSS:o,clientInfo:g(),throttle:function(n,t,i){var r;return function(){var e=arguments;clearTimeout(r),r=setTimeout(function(){n.apply(i,e)},t)}},openWithWebView:function(e,n){"miniprogram"===r.window.__wxjs_environment?window.WeixinJSBridge?a(e,n):window.addEventListener("WeixinJSBridgeReady",function(){a(e,n)}):i.openWithWebView(e)},setTitle:function(e){var n=g();function t(){WeixinJSBridge.invoke("setPageTitle",{title:e},function(e){})}if(n.isWechat){if(m("6.0.2")&&(n.isAndroid||"yes"===window.__wxjs_is_wkwebview||window.__wxjs_is_wkwebview))return void(r.window.WeixinJSBridge?t():document.addEventListener("WeixinJSBridgeReady",function(){t()}));if(document.title=e,n.isWPcWechat)return;var i=document.createElement("iframe");i.style.cssText="width:0px;height:0px;display:none;",i.src=location.protocol+"//wximg.gtimg.com/tmt/game/dist/img/wgui/placeholder/1x1.png",i.onload=function(){setTimeout(function(){i.onload=null,document.body.removeChild(i)},0)},document.body.appendChild(i)}else document.title=e},base64_decode:function(e){var n,t,i,r,o,a,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=0,d=0,c=[];if(!e)return e;for(e+="";n=(a=s.indexOf(e.charAt(l++))<<18|s.indexOf(e.charAt(l++))<<12|(r=s.indexOf(e.charAt(l++)))<<6|(o=s.indexOf(e.charAt(l++))))>>16&255,t=a>>8&255,i=255&a,c[d++]=64==r?String.fromCharCode(n):64==o?String.fromCharCode(n,t):String.fromCharCode(n,t,i),l<e.length;);return c.join("").replace(/\0+$/,"")},isBigClientVersion:m,getLoginParamsStrByLoginType:function(e){return"2"!==l("auth_type")||g().isWechat?d():e?c():u({auth_type:2,sig:l("sig")||"",timestamp:l("timestamp")||"",algorithm:l("algorithm")||"",version:l("version")||"",encode:l("encode")||"",msdkEncodeParam:l("msdkEncodeParam")||""})},filterImg:function(e){return l("debug")?e:f()?e.replace(/^https?\:/i,""):(e=e.replace(/^\/\//i,"http://")).replace(/^https\:/i,"http:")},filterParamByKey:function(i,e){return e.forEach(function(e,n){if(i.hasOwnProperty(e)){var t=i[e];null!=t&&null!=t&&""!=t&&0!=t&&"0"!=t||delete i[e]}}),i},filterUrlByKey:function(r,e){return e.forEach(function(e,n){var t=new RegExp("[?&]("+e+"=([^&]*))","i"),i=r.match(t);i&&2<i.length&&(""==i[2]||"undefined"==i[2]||"0"==i[2])&&(r=r.replace(i[1],"").replace(/(\?|\&)\&/g,"$1"))}),r},debounce:function(n,t,i){var r;return function(){var e=arguments;r||(r=setTimeout(function(){n.apply(i,e),r=null},t))}}}},function(e,n){e.exports=function(e,n,t){var i,r,o,a;return t=t||{},1<arguments.length&&"[object Object]"!==String(n)?(null==n&&(t.expires=-1),"number"==typeof t.expires&&(i=24*t.expires*60*60*1e3,(r=t.expires=new Date).setTime(r.getTime()+i)),n=String(n),document.cookie=[encodeURIComponent(e),"=",t.raw?n:encodeURIComponent(n),t.expires?"; expires="+t.expires.toUTCString():"",t.path?"; path="+t.path:"",t.domain?"; domain="+t.domain:"",t.secure?"; secure":""].join("")):(a=(t=n||{}).raw?function(e){return e}:decodeURIComponent,(o=new RegExp("(?:^|; )"+encodeURIComponent(e)+"=([^;]*)").exec(document.cookie))?a(o[1]):null)}},function(e,n,t){var p,g=t(15),i=t(0);function f(e,n,t){e.addEventListener?e.addEventListener(n,t,!1):e.attachEvent?e.attachEvent("on"+n,t):e["on"+n]=t}function m(e){try{if(i.window.hackIFrameEvent&&!0===i.window.hackIFrameEvent&&i.window!=window&&/(iPhone|iPad|iPod|iOS)/i.test(i.window.navigator.userAgent)&&e.changedTouches[0].clientY-i.document.body.scrollTop>i.window.innerHeight-i.window.document.getElementById("tab_box").clientHeight)return i.window.dealIosIFrameClickBug&&i.window.dealIosIFrameClickBug(e),!0}catch(e){}return!1}var w="yes"===window.__wxjs_is_wkwebview||window.__wxjs_is_wkwebview||"yes"===i.window.__wxjs_is_wkwebview||i.window.__wxjs_is_wkwebview;function v(){clearTimeout(p),p=null}function r(e,t){var i=this,r=0,o=0,a=0,s=0,l=0,d=0;if(e){var c=t instanceof Function&&t;(!t.useTouch||!0!==t.useTouch)&&w||!g.clientInfo.isIOS&&!g.clientInfo.isAndroid?f(e,"click",function(e){var n=e.target||e.srcElement;!0!==m(e)&&(t.isCurrentlyCbk?(u(e),c?c.call(i,e,n):t&&t.touchend&&t.touchend.call(i,e,n)):setTimeout(function(){u(e),c?c.call(i,e,n):t&&t.touchend&&t.touchend.call(i,e,n)},0))}):(f(e,"touchstart",function(e){var n=e.target||e.srcElement;o=r=0,a=e.touches[0].pageY,l=e.touches[0].pageX,t&&t.touchstart&&t.touchstart.call(i,e,n)}),f(e,"touchmove",function(e){var n=e.target||e.srcElement;s=e.touches[0].pageY,d=e.touches[0].pageX,r+=Math.abs(s-a),o+=Math.abs(d-l),a=s,l=d,t&&t.touchmove&&t.touchmove.call(i,e,n)}),f(e,"touchend",function(e){if(0==Math.abs(r)&&0==Math.abs(o)){var n=e.target||e.srcElement;v(),p=setTimeout(function(){u(e),!0!==m(e)&&(c?c.call(i,e,n):t.touchend&&t.touchend.call(i,e,n))},w?0:10)}e.stopPropagation()}))}function u(e){e.preventDefault(),e.stopPropagation()}}window.addEventListener("scroll",v),e.exports={on:f,tap:r,click:r,addEvent:f}},function(e,n,t){var i=t(0),r=t(1),s=t(3).mapToStr,l=(t(3).strToMap,t(9));l=t(19),l=t(28),l=t(29),l=t(30),l=t(31);var o=t(4),a=t(32),d=r.getQueryStr,c=function(e){return-1==e.indexOf("http")?location.protocol+"//"+e.replace(/^\s*\/\//,""):e.replace(/https?:/,location.protocol)},u=function(e){var n=e.JumpUrl;e.openUrlQualityInstance.EndLogic({openUrl:{res:"goLocation"}}),d("uin",n)||-1!=n.indexOf("#wechat_redirect")||(n+="#wechat_redirect"),i.window.location.href=n},p=function(e){return{err_msg:{timeout:"openUrl:fail,getuinkey timeout",oldver:"openUrl:fail,too old to support jsapi",invalid:"openUrl:fail,url invalid"}[e]}},g=function(e,n){var t,i,r=e.JumpUrl||"",o=function(e,n){l.openUrlWithExtraWebview({url:e,openType:"1",open_game_webview:"1"},function(e){n&&n(e)})};e.useGameOpen?(t=r,i=function(e){-1==e.err_msg.indexOf(":ok")?o(r,function(e){n&&n(e)}):n&&n(e)},l.openGameUrlWithExtraWebView({url:t,openType:"1",open_game_webview:"1",statusBarColor:"#ffffff",statusBarStyle:"black"},function(e){i(e)})):o(r,function(e){n&&n(e)})},f={urlPretreatment:function(e){e.JumpUrl=c(e.srcurl),e.JumpUrl=e.JumpUrl.replace(/#wechat_redirect/g,"");var n=d("abt",null,top),t=d("abt",e.srcurl)||0;t&&(n=t),e.extparam.abt=e.extparam.abt||n;var i=e.extparam;i.ssid=i.ssid||0,i.abt=i.abt||0;var r=[];d("rpt_allpath")&&r.push(d("rpt_allpath")),i.ssid&&r.push(i.ssid),0<r.length&&(i.rpt_allpath=r.join("_")),0===(""+i.ssid).indexOf("act")&&(i.ssid=i.ssid.replace("act","")),d("isFromWeappEntry")&&(i.isFromWeappEntry=d("isFromWeappEntry"));var o=-1!=e.JumpUrl.indexOf("?")?"&":"?",a=e.JumpUrl+o+s(i);return e.extparam=i,e.allPathTemp=r,e.JumpUrl=a.replace(/#(.*?)$/g,"#wechat_redirect"),e},processMiniApp:function(n){var t=n.srcurl.match(/^weapp:\/\/\S+/),e=t?n.srcurl:c(n.srcurl),i=n.extparam,r=n.allPathTemp;if(-1==e.indexOf(encodeURIComponent("weapp://"))&&-1==e.indexOf("weapp://"))return!1;var o="",a={};return o=(o=t?n.srcurl:decodeURIComponent(d("weapp",e))).replace(/weapp:\/\/([\d\w]+)/g,function(e,n){return a.targetAppId=n,""}),a.path=decodeURIComponent(d("path",o)),i.ssid&&(a.path+=(-1==a.path.indexOf("?")?"?":"&")+"ssid="+i.ssid+"&rpt_allpath="+r.join("_")),e=e.replace(/weapp=[^&#]+/g,""),l.launchMiniProgram({referrerAppId:"wx62d9035fd4fd2059",targetAppId:a.targetAppId,path:a.path,envVersion:d("env_version",o)},function(e){-1!=e.err_msg.indexOf(":ok")?n.callback(e):t?-1!=e.err_msg.indexOf("clientVersion")?n.callback(p("oldver")):n.callback(e):f.processIos(n).processAndroid(n).processSafeLogic(n)}),!0},processAndroid:function(n){if(!o.isAndroid)return this;var t,e,i=o.clientVersion(!0);return o.isAndroid&&0<o.versionCompare(i,"6.5.9")&&!0===n.extparam.gameView?l.openGameWebView({url:n.JumpUrl},function(e){n.jTimer&&clearTimeout(n.jTimer),-1==e.err_msg.indexOf(":ok")?setTimeout(function(){n.callback(e),u(n)},400):n.callback(e)}):(t=function(){g(n,function(e){n.jTimer&&clearTimeout(n.jTimer),-1==e.err_msg.indexOf(":ok")?setTimeout(function(){n.callback(e),u(n)},400):n.callback(e)})},e=o.clientVersion(!0),0<=o.versionCompare(e,"6.6.0")?l.getGameCommInfo({cmd:10002},function(e){e.webpageCount?parseInt(""+e.webpageCount)<5&&t():r.log("getGameCommInfo cmd 10002 error")}):t()),this},processIos:function(n){return o.isiOS&&g(n,function(e){n.jTimer&&clearTimeout(n.jTimer),-1==e.err_msg.indexOf(":ok")?setTimeout(function(){n.callback(e),u(n)},400):n.callback(e)}),this},processSafeLogic:function(e){return e.jTimer=setTimeout(function(){e.callback(p("timeout")),u(e)},o.isWechat?2e3:500),this},processContext:function(e,n,t){var i={};return i.srcurl=e+"",i.extparam=n||{},i.callback="function"==typeof t?t:function(){},i.allPathTemp=[],i.JumpUrl="",i.useGameOpen=null==i.extparam.useGameOpen||i.extparam.useGameOpen,i}};l.openUrl=l.openUrl||function(e,n,t){var i={};n=n||{},/:?\/\//g.test(e)?(i=f.processContext(e,n,t),(i=f.urlPretreatment(i)).openUrlQualityInstance=a.StartRuner("openUrl",{url:e,extparam:n}),f.processMiniApp(i)||(o.isLuggage?f.processIos(i).processAndroid(i).processSafeLogic(i):l.verifyJsapi(["reportGameWeb","openUrlWithExtraWebview","openGameWebView","launchMiniProgram","openGameUrlWithExtraWebView","getGameCommInfo"],function(e,n){f.processIos(i).processAndroid(i).processSafeLogic(i)}))):t&&t(p("invalid"))},e.exports=l},function(e,n,t){var i=t(2);i.openUrlWithExtraWebview=i.openUrlWithExtraWebview||function(e,n){i.invoke("openUrlWithExtraWebview",e,n)},e.exports=i},function(e,n,t){var i,r=t(3);window,document,i={showLoading:function(e,t){var n=this;if(0!=function(e){for(var n=location.protocol,t=document.getElementsByTagName("link"),i=!1,r=0,o=t.length;r<o;r++){var a=t[r].getAttribute("href");if(-1!=a.indexOf("wgui")||-1!=a.indexOf("wui")){i=!0;break}}if(!1===i){var s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("href",n+"//wximg.qq.com/tmt/game/dist/css/wgui.1.0.1.min.css?max_age=2592000"),document.getElementsByTagName("head")[0].appendChild(s),i=!0}return i}()){(t=t||{timeout:0,txt:"",needIcon:!0,type:"loading",times:1,seconds:1,moreTip:""}).txt=e||t.txt,t.needIconStyle=void 0===t.needIcon||1==t.needIcon?"":"none",t.type=t.type||"loading",t.showBar=t.showBar||!1,t.moreTip=t.moreTip||"",t.times=t.times||1,t.seconds=(t.timeout||1e3)/1e3,t.progressBarClass="open"==t.type?"":"none","open"==t.type&&(t.needIconStyle="none"),""==t.moreTip?t.moreTipClass="wgui-d-n":t.moreTipClass="";var i="spinner_"+parseInt((new Date).getTime()/864e5);n.spinnerDiv=document.getElementById(i),n.spinnerDiv||(n.spinnerDiv=document.createElement("div"),n.spinnerDiv.id=i,document.body.appendChild(n.spinnerDiv)),n.spinnerDiv.style.display="block",r.insertHTMLFilterXss(['<div class="wgui-message wgui-message_{type}">','    <div class="wgui-message__content">','        <div class="wgui-message__inner">','            <div class="wgui-message__icon" style="display:{needIconStyle}"></div>','            <div class="wgui-message__text">{txt}</div>','            <div class="{moreTipClass}" style="font-size: 10px;color: #fff;line-height: 15px; margin: 5px 0;transform: scale(0.9)">{moreTip}</div>',"        </div>","    </div>",'    <div class="wgui-message__line-wrap" style="display:{progressBarClass}">','        <div class="wgui-message__line" style="-webkit-animation: move {seconds}s linear {times};animation: move {seconds}s linear {times};"></div>',"    </div>","</div>"].join("").replace(/\{(\w+)\}/g,function(e,n){return void 0!==t[n]?t[n].toString():e}),n.spinnerDiv,!0),t.timeout&&0<parseInt(t.timeout)&&setTimeout(function(){n.hideLoading(),t.hideCb&&t.hideCb.call(window)},t.timeout)}},hideLoading:function(){this.spinnerDiv&&(this.spinnerDiv.style.display="none")},showTips:function(e,n){var t=n||{timeout:1e3};this.showLoading(e,t)}},e.exports=i},function(e,n,t){var y=t(8),i=function(a){if(a.BJ_REPORT)return a.BJ_REPORT;var d=[],c={id:0,uin:0,url:"",combo:1,ext:{},level:4,ignore:[],random:1,delay:1e3,submit:null},u=function(e,n){return Object.prototype.toString.call(e)==="[object "+(n||"Object")+"]"},s=function(e){return"object"==typeof e&&!!e},l=a.onerror;a.onerror=function(e,n,t,i,r){y.logError("Badjs",e,n,i,r);var o=e;r&&r.stack&&(o=p(r)),u(o,"Event")&&(o+=o.type?"--"+o.type+"--"+(o.target?o.target.tagName+"::"+o.target.src:""):""),h.push({msg:o,target:n,rowNum:t,colNum:i}),v(),l&&l.apply(a,arguments)};var p=function(e){var n=e.stack.replace(/\n/gi,"").split(/\bat\b/).slice(0,5).join("@").replace(/\?[^:]+/gi,""),t=e.toString();return n.indexOf(t)<0&&(n=t+"@"+n),n},g=function(e,n){var t=[],i=[],r=[];if(s(e))for(var o in e.level=e.level||c.level,e){var a=e[o]||"";if(a){if(s(a))try{a=JSON.stringify(a)}catch(e){a="[BJ_REPORT detect value stringify error] "+e.toString()}r.push(o+":"+a),t.push(o+"="+encodeURIComponent(a)),i.push(o+"["+n+"]="+encodeURIComponent(a))}}return[i.join("&"),r.join(","),t.join("&")]},t=[],f=function(e){if(c.submit)c.submit(e);else{var n=new Image;t.push(n),n.src=e}},m=[],w=0,v=function(e){if(c.report){for(;d.length;){var n=!1,t=d.shift(),i=g(t,m.length);if(u(c.ignore,"Array"))for(var r=0,o=c.ignore.length;r<o;r++){var a=c.ignore[r];if(u(a,"RegExp")&&a.test(i[1])||u(a,"Function")&&a(t,i[1])){n=!0;break}}n||(c.combo?m.push(i[0]):f(c.report+i[2]+"&_t="+ +new Date),c.onReport&&c.onReport(c.id,t))}var s=m.length;if(s){var l=function(){clearTimeout(w),f(c.report+m.join("&")+"&count="+s+"&_t="+ +new Date),w=0,m=[]};e?l():w||(w=setTimeout(l,c.delay))}}},h={push:function(e){return Math.random()>=c.random||(d.push(s(e)?function(e){try{if(e.stack){var n=e.stack.match("http://[^\n]+"),t=(n=n?n[0]:"").match(":([0-9]+):([0-9]+)");return t||(t=[0,0,0]),{msg:p(e),rowNum:t[1],colNum:t[2],target:n.replace(t[0],"")}}return e}catch(n){return e}}(e):{msg:e}),v()),h},report:function(e){return e&&h.push(e),v(!0),h},info:function(e){return e&&(s(e)?e.level=2:e={msg:e,level:2},h.push(e)),h},debug:function(e){return e&&(s(e)?e.level=1:e={msg:e,level:1},h.push(e)),h},init:function(e){if(s(e))for(var n in e)c[n]=e[n];var t=parseInt(c.id,10);return t&&(c.report=(c.url||"http://badjs2.qq.com/badjs")+"?id="+t+"&uin="+parseInt(c.uin||(document.cookie.match(/\buin=\D+(\d+)/)||[])[1],10)+"&from="+encodeURIComponent(location.href)+"&ext="+JSON.stringify(c.ext)+"&"),h},__onerror__:a.onerror};return h}(window);e.exports&&(n=e.exports=i),n.BJ_REPORT=i;var r=t(1),o=t(12).base64decode,a=r.getQueryStr;i.init({url:"https://badjs.weixinbridge.com/badjs",id:101,uin:o(decodeURIComponent(a("uin"))),combo:1,delay:2e3,ignore:[/Script error/i,/trigger/i,/WeixinJSBridge/i,/_handleMessageFromWeixin/i,/setfont/i,/WXJS/i,/_WXJS/i,/SecurityError/i],level:4,random:1})},function(e,n){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,n){var a={},t="Array Object String Date RegExp Function Boolean Number Null Undefined".split(" ");function i(){return Object.prototype.toString.call(this).slice(8,-1)}for(var r=t.length;r--;)a["is"+t[r]]=function(n){return function(e){return i.call(e)===n}}(t[r]);e.exports=function e(n,t){if(a.isFunction(n))return new Function("return "+n.toString())();if(null===n||"object"!=typeof n)return n;var i,r,o=a.isArray(n)?[]:{};for(i in n)(r=n[i])!==n&&(t?a.isArray(r)||a.isObject(r)?o[i]=e(r,t):a.isFunction(r)?o[i]=new Function("return "+r.toString())():o[i]=r:o[i]=r);return o}},function(e,n,t){var i=t(13),r=t(1),s=t(3),l=t(6),o=t(0),a=t(18),d=t(4),c=function(e,n){var t,i={};for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t]);for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(i[t]=n[t]);return i},u=c(t(20),t(5));function p(){var e=-1!==location.search.indexOf("debug=1");return{isIOS:d.isIOS,isPad:d.isPad,isAndroid:d.isAndroid,isWechat:d.isWechat,isDebug:e,wxVersion:d.clientVersion(!0),isWPcWechat:d.isWPcWechat,isPC:d.isPC}}e.exports={ajaxRequest:i,ajaxCall:i,getQueryStr:r.getQueryStr,mapToStr:s.mapToStr,extend:c,tmpl:s.format,filterXSS:s.filterXSS,clientInfo:p(),openWithWebView:a.openUrl,setTitle:function(e){var n=p();function t(){WeixinJSBridge.invoke("setPageTitle",{title:e},function(e){})}if(n.isWechat){if(function(e){var n=(navigator.userAgent||navigator.wxuserAgent||str).match(/MicroMessenger\/([\d\.]+)/i),t="";if(!(n&&1<n.length))return!1;t=(t=n[1]).split("."),e=e.split(".");for(var i=0;i<t.length&&i<e.length;i++){if((+t[i]||0)>(+e[i]||0))return!0;if((+t[i]||0)<(+e[i]||0))return!1}return!1}("6.0.2")&&(n.isAndroid||"yes"===window.__wxjs_is_wkwebview||window.__wxjs_is_wkwebview))return void(o.window.WeixinJSBridge?t():(document.addEventListener("WeixinJSBridgeReady",function(){t()}),document.title=e));if(document.title=e,n.isWPcWechat)return;if(n.isIOS){var i=document.createElement("iframe");i.style.cssText="width:0px;height:0px;display:none;",i.src=location.protocol+"//wximg.gtimg.com/tmt/game/dist/img/wgui/placeholder/1x1.png",i.onload=function(){setTimeout(function(){i.onload=null,document.body.removeChild(i)},0)},document.body.appendChild(i)}}else document.title=e},throttle:function(n,t,i){var r;return function(){var e=arguments;return clearTimeout(r),r=setTimeout(function(){n.apply(i,e),r=null},t)}},debounce:function(n,t,i){var r;return function(){var e=arguments;r||(r=setTimeout(function(){n.apply(i,e),r=null},t))}},filterImg:s.filterImg,filterUrlByKey:s.filterUrlByKey,filterParamByKey:s.filterParamByKey,extendDeep:function(){for(var e=arguments.length,n={},t=0;t<e;t++)for(var i in arguments[t])n[i]=arguments[t][i];return n},UI:u,ajax:function(e,n,i,t,r){if("function"==typeof r)var o=r;else if("object"==typeof r){var a=c({method:"GET",timeout:15e3},r);o=arguments[5]}else a={};return this._QMAjax=new l(e,a.method,a.timeout),(new Date).getTime(),this._QMAjax.onComplete=function(e){var n={},t=(e.responseText||"").replace(/[\u0000-\u001f\u000B\u000C\u00A0\uFEFF\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u202E\u202D]/g,"");try{n=JSON.parse(t)}catch(e){try{n=new Function("return "+t)()}catch(e){n={}}}i&&i(n),(new Date).getTime()},this._QMAjax.onError=function(e,n){"ok"!==n&&t&&t(n);try{JSON.parse(e.responseText)}catch(n){e.responseText}(new Date).getTime()},this._QMAjax.onTimeout=o,"string"==typeof n?this._QMAjax.send(n):this._QMAjax.send(s.mapToStr(n)),this._QMAjax}}},function(e,n){var t={default:{isOK:function(e){return-1!=(e.err_msg+"").indexOf(":ok")||"0"==e.result+""}},getInstallState:{isOK:function(e){return-1!=(e.err_msg+"").indexOf(":yes")}},operateGameCenterMsg:{isOK:function(e){return null!=e.result||"err_msg"in e&&-1!=(e.err_msg+"").indexOf(":ok")}}};e.exports={isOK:function(e,n){return e in t?t[e].isOK(n):t.default.isOK(n)}}},function(n,e,t){var i=t(0),r=t(1),d=t(6),o=r.getQueryStr,c=t(2);!function(e){var i="",a={loaded:!1},s=e.location;function l(e,n,t){n.uin=o("uin",e),n.key=o("key",e),n.pass_ticket=o("pass_ticket",e),i="uin="+n.uin+"&key="+n.key+"&pass_ticket="+n.pass_ticket,n.loginStr=i,n.Referer="Referer="+encodeURIComponent(s.href.split("#")[0]),n.method=null!=n.Referer?"POST":"GET",n.url="/cgi-bin/comm/genfun?"+i+"&_="+Math.random(),t.loginCbk&&"function"==typeof t.loginCbk&&t.loginCbk({uin:n.uin,key:n.key,from:n.from,pass_ticket:n.pass_ticket,loginStr:n.loginStr})}c.asynVerifyCall=function(t,i,r){var o=new d;o.onComplete=function(e){if(-1!=e.responseText.indexOf("{")){var n=JSON.parse(e.responseText);0==n.ret?(a.sign=n.data.jsapi_sign,a.sign.loginStr=o.loginStr,a.sign.uin=o.uin,a.sign.key=o.key,a.sign.pass_ticket=o.pass_ticket,a.sign.from=o.from,a.loaded=!0,c.verifyCall(t,a.sign,r)):r&&r(!1,{err_code:1,loginStr:o.loginStr,uin:o.uin,key:o.key,from:o.from,pass_ticket:o.pass_ticket,err_msg:"async signature load error"})}o=null},o.onError=function(e,n){r&&r(!1,{err_code:-1,xhr:e,loginStr:o.loginStr,uin:o.uin,key:o.key,pass_ticket:o.pass_ticket,err_msg:n}),o=null},/uin=[^&]+/i.test(s.search)?(o.from="url",l(s.search,o,i),o.send(o.Referer?o.Referer:null)):c.getA8key(function(e,n){o.from=n,l(e.full_url||e.url,o,i),o.send(o.Referer?o.Referer:null)})},n.exports=c}(i.window)},function(e,n){e.exports={reportIDKey:function(e,n){(new Image).src="//game.weixin.qq.com/cgi-bin/comm/ossattrinc?id="+e+"&key="+n}}},function(e,n,t){var i=t(2);i.openGameWebView=i.openGameWebView||function(e,n){i.invoke("openGameWebView",e,n)},e.exports=i},function(e,n,t){var i=t(0);function r(e,n){"use strict";var t=(n=n||i.window.location.search).match(new RegExp("[?&]"+e+"=([^&]+)","i"));return null==t||t.length<=1?"":t[1]}var o=t(2),a=t(4);o.launchMiniProgram=o.launchMiniProgram||function(e,n){var t=a.clientVersion(!0);r("mpenv")?e.envVersion=r("mpenv"):e.envVersion&&(e.envVersion=e.envVersion||"release"),0<=a.versionCompare(t,"6.5.8")?o.invoke("launchMiniProgram",e,n):n({err_msg:"clientVersion:"+t+", fail"})},e.exports=o},function(e,n,t){var i=t(2);i.getGameCommInfo=i.getGameCommInfo||function(e,n){i.invoke("getGameCommInfo",e,n)},e.exports=i},function(e,n,t){var i=t(2);i.openGameUrlWithExtraWebView=i.openGameUrlWithExtraWebView||function(e,n){i.invoke("openGameUrlWithExtraWebView",e,n)},e.exports=i},function(e,n,t){var i=t(0),r=t(7),o=i.window.WXGAME||{};r=o.baseQualityReport||r,e.exports={StartLogic:function(e,n,t){return r.StartLogic(e,n,t,null)},StartRuner:function(e,n){var t=r.LOGIC_CONST.TypeTextEnum.LOGIC;return r.StartLogic(t,e,n,null)},LOGIC_CONST:r.LOGIC_CONST}},,,,,,,,,,,,function(e,n,t){"use strict";var a=t(45),o=t(11),s=t(1),i=t(12),r=(t(10),t(3)),l=t(20),d=t(5),c=t(46),u=(/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent),/(Android)/i.test(navigator.userAgent)),p=WXGAME.WxBridge;window.wxBridge=window.wxBridge||p,p=t(48);var g=function(e){return document.getElementById(e)},f=a.Promise,m=s.getQueryStr,w=(i.base64decode,r.mapToStr),v=(document,window,t(21),t(49)),h=window.logInfo||function(){},y=m("isFromWeappEntry"),x=m("join"),_={},b={loadGameData:function(e,t,i){var r=this,n="https://game.weixin.qq.com/cgi-bin/actnew/general",o={method:"GET",op:"info",appid:t,need_appitem:!0};e=e||{},o=s.extend(o,e),n=n+"?"+w(o),a.xhrCallCgi(n,{method:"GET"},function(e){if("0"==e.ret){var n={};e.data=e.data||{},n.appname=e.data.app_name,n.ioslink=e.data.ios_launch_param,n.iosdownurl=e.data.ios_down_url,n.schemecall=e.data.android_launch_param,n.pkgname=e.data.android_package_name,n.androiddownurl=e.data.android_down_url,n.md5sum=e.data.android_package_md5,n.appid=t,n.downloadertype=e.data.android_downloader_type,n.use_downloader_widget=e.data.use_downloader_widget,n.android_package_name_list=s.getValue(e,"data.appitem.package_name_list")||[],n.android_package_name_list.unshift(n.pkgname),x&&(n.messageExt=m("message")),_.oGameData=n}else if(!e||0!=e.ret)return l.showTips("绯荤粺鍑洪敊浜嗗摝",{type:"fail",timeout:1e3}),void a.domVisible(g("loading"),!1);i&&i.call(r,e)},function(e){})}},k={init:function(){this.getParams(),this.cloadData(),this.report(1)},getParams:function(){this.wxVersion=a.getClientVersion(),this.isBiggerThan637=0<=a.versionCompare(this.wxVersion,"6.3.7"),this.isBiggerThan638=0<=a.versionCompare(this.wxVersion,"6.3.8"),this.appid=m("appid")},cloadData:function(){var t=this;h("cloadData.getUinKey","start"),p.getUinKey(function(e){var n=e;t.uin=n.uin,t.key=n.key,t.pass_ticket=n.pass_ticket,h("cloadData.getUinKey","end",e);var r=function(e){if(e&&(e.err_msg||res.errMsg))if(1==-1<(e.err_msg||res.errMsg).indexOf(":yes"))c.app.allinone(_.oGameData,function(e){t.report(e),setTimeout(function(){p.callAfterReady(function(){WeixinJSBridge.invoke("closeWindow")})},800)});else{if(x)return void location.replace("https://game.weixin.qq.com/cgi-bin/h5/static/gamecenter/detail.html?appid="+m("appid")+"#wechat_redirect");var n=function(){h("cloadData.allinone","start"),c.app.allinone(_.oGameData,function(e){t.report(e),3==e&&d.alert("娓告垙宸插紑濮嬩笅杞�..."),h("cloadData.allinone","end",e),setTimeout(function(){WeixinJSBridge.invoke("closeWindow")},1e3)})};"1"==""+m("confirm")?d.alert("鏈畨瑁呮父鎴忥紝鏄惁鐜板湪瀹夎锛�",{style:"twoBtn",confirmCb:n,closeCb:function(){WeixinJSBridge.invoke("closeWindow")}}):n.call(c)}};(function(){var n=new f;return h("cloadData.loadGameData","start"),b.loadGameData(e,t.appid,function(e){h("cloadData.loadGameData","end",e),e.data&&(e.data.android_down_url||e.data.ios_down_url)?n.resolve():(a.domVisible(g("loading"),!1),d.alert("娓告垙鍦ㄥ綋鍓嶅钩鍙版殏鏈笂鏋讹紝鏁鏈熷緟~"))}),n}).call(this).then(function(){var e=new f;return _.oGameData.report=0,u?p.callAfterReady(function(){var e=new o;e.setSync();for(var i=_.oGameData.android_package_name_list,n=0,t=i.length;n<t;n++)e.run(function(t){return function(){var n=this;p.getInstallState({packageName:i[t]},function(e){-1<(e.err_msg||res.errMsg).indexOf(":yes")?(_.oGameData.pkgname=i[t],r(e)):(n.done(),t==i.length-1&&(_.oGameData.pkgname=i[0],r({err_msg:"get_install_state:no"})))})}}(n))}):p.callAfterReady(function(){h("cloadData.allinone","start"),_.oGameData.isFromWeappEntry=1==+y,c.app.allinone(_.oGameData,function(e){t.report(e),y||p.callAfterReady(function(){WeixinJSBridge.invoke("closeWindow")}),h("cloadData.allinone","end1",e)})}),a.domVisible(g("loading"),!1),e}.bind(this))}.bind(this))},report:function(e){var n={nNoticeID:m("noticeid")||0,sAppID:this.appid,iActID:parseInt(m("actid")||"0"),nUrOpState:e};v.report(n)}};k.init(),window.c=k},function(e,n,t){"use strict";var i=WXGAME.Event||t(17),r=t(13),p=WXGAME.String||t(3),o=function(){this.thens=[]};o.prototype={resolve:function(){var e,n=this.thens.shift();n&&(e=n.apply(null,arguments))instanceof o&&(e.thens=this.thens)},then:function(e){return this.thens.push(e),this}};var a={domVisible:function(e,n){e&&(e.style.display=n?"":"none")},click:i.click,xhrCallCgi:function(e,n,t,i){r(e,n,t,i)},renderBlock:function(e,n,t,i,r){t=t||[],i=i||"";var o=[];for(var a in t)o.push(p.format(n,t[a],r));var s=o.join(i);e.innerHTML=s},renderAddBlock:function(e,n,t,i,r){t=t||[],i=i||"";var o=[];for(var a in t)o.push(p.format(n,t[a],r));var s=document.createElement("div"),l=document.createDocumentFragment();s.innerHTML=o.join(i);for(var d=0,c=s.childNodes.length;d<c;d++){var u=s.childNodes[d].cloneNode(!0);l.appendChild(u)}s.innerHTML=null,s=null,e.appendChild(l)},getParentLabel:function(e,n,t){var i=0,r=e;for(t=t||5;r&&n!=r.nodeName.toLowerCase()&&n!=r.className&&i<t;)r=r.parentNode,i++;return t<=i?null:r},getParentByAttr:function(e,n,t){var i=0,r=e;for(t=t||10;r&&r.getAttribute&&!r.getAttribute(n)&&i<t&&"html"!=r.nodeName.toLowerCase();)r=r.parentNode,i++;return t<=i?null:r},getClientVersion:function(e){var n=(navigator.userAgent||navigator.wxuserAgent||e).match(/MicroMessenger\/([\d\.]+)/i),t="";return n&&1<n.length&&(t=n[1]),(t=t.split(".")).length=3,t.join(".")+""},getFirstByClassName:function(e,n){var t=e.getElementsByClassName(n)||[];return t.length=1,t[0]},versionCompare:function(e,n){for(var t=e.split("."),i=n.split("."),r=0,o=Math.min(t.length,i.length);r<o;r++){var a=parseInt(t[r])-parseInt(i[r]);if(0!=a)return a}return t.length-i.length},addClass:function(e,n){return e&&(" "+e.className+" ").indexOf(" "+n+" ")<0&&(e.className+=e.className?" "+n:n),e},removeClass:function(e,n){if(e){var t=" "+e.className+" ";t=t.replace(/(\s+)/gi," "),removed=t.replace(" "+n+" "," "),removed=removed.replace(/(^\s+)|(\s+$)/g,""),e.className=removed}return e},hasClass:function(e,n){if(e)for(var t=e.className.split(/\s+/),i=0,r=t.length;i<r;i++)if(t[i]===n)return!0;return!1}};e.exports=a,e.exports.Promise=o},function(k,e,S){!function(r){var l=-999,d={},s=S(0),e=s.window.navigator.userAgent,c=-1!=e.indexOf("MicroMessenger"),a=/(Android)/i.test(e),u=function(){var e=(s.window.navigator.userAgent||s.window.navigator.wxuserAgent||str).match(/MicroMessenger\/([\d\.]+)/i),n="",t=[1e3,100,1],i=0;e&&1<e.length&&(n=e[1]);for(var r=0,o=(n=n.split(".").slice(0,3)).length;r<o;r++){var a=parseInt(n[r].substr(0,2));isNaN(a)||(i+=a*t[r])}return i}(),n=-1!=location.search.indexOf("debug=2"),p=/(iPhone|iPad|iPod|iOS)/i.test(e)&&!a,g=S(9);function f(e,n,t){if(void 0===t&&(t=window),void 0===t.location)throw"Illegal Context,Need context.location";var i=n||t.location.search,r=(i=(""+i).replace(/#(.*)$/g,"").replace(/&amp;/g,"&")).match(new RegExp("[?&]"+e+"=([^&]+)","i"));return null==r||r.length<=1?"":r[1]}function t(e){var n=w(t,e);e=e||r,c&&e.timestamp&&e.noncestr&&e.signature&&n&&g&&g.verifyJsapi(g.apis,function(e){})}function m(e,n){e&&"function"==typeof e&&e(n)}function i(e){var n={appid:"AppID",ioslink:"AppID",schemecall:"AppID",iosdownurl:"DownloadInfo.DownloadURL",pkgname:"PackageName",md5sum:"DownloadInfo.AndroidApkMd5",androiddownurl:"DownloadInfo.DownloadURL"};for(var t in n){var i=-1!=n[t].indexOf(".")?e.DownloadInfo||{}:e,r=-1!=n[t].indexOf(".")?n[t].split(".")[1]:n[t];!(t in e)&&n[r]in i&&i[n[r]]&&(e[t]=i[n[r]]+("ioslink"==t||"schemecall"==t?"://":""))}return e}function o(){return 6504<u?"launchApplication":"launch3rdApp"}function w(e,n){return e.retryCnt=e.retryCnt||1,!c||100<e.retryCnt?(d.log("bridgeReadyCall retry count exceed",e.retryCnt,e,n),!1):!(c&&!r.WeixinJSBridge&&(e.retryCnt++,clearTimeout(e.retryTimeout),e.retryTimeout=setTimeout(function(){e.apply(null,n)},100),1))}function v(o,a){6300<u||(o&&o.appid?(clearInterval(v[o.appid]),v[o.appid]=setInterval(function(){r.WeixinJSBridge&&d.app.isDownloaded(o,function(e){d.log&&d.log(o.appid,"monitorAppDownloadState->mweixin.app.isDownloaded->ret->"+e);var n="",t="";if(0==e?(clearInterval(v[o.appid]),n="downloaded",t=tipsMsg.installText||gMsg.installText,a||d.app.installApp(o,a)):2==e&&(n="downloaded",t=tipsMsg.downloadingText||gMsg.downloadingText),o.btns&&n)for(var i=0,r=o.btns.length;i<r;i++)o.btns[i].state=n,o.btns[i].innerHTML=t})},1e3)):"function"==typeof a&&a(l))}function h(a,s){if(!(6300<u))if(a&&a.appid){if(clearInterval(h[a.appid]),a.btns&&0!=a.btns.length)if(p){var e=tipsMsg.iosStartText||tipsMsg.startText||gMsg.startText;if(a.btns)for(var n=0,t=a.btns.length;n<t;n++)a.btns[n].state="installed",a.btns[n].innerHTML=e;"function"==typeof s&&s(a,0)}else h[a.appid]=setInterval(function(){r.WeixinJSBridge&&d.app.isAppInstalled(a,function(e){var o=0==e?tipsMsg.startText||gMsg.startText:1==e?tipsMsg.upgradeText||gMsg.upgradeText||"鏇存柊":tipsMsg.downloadText||gMsg.downloadText,n=0==e?"installed":"";if(0==e){if(clearInterval(h[a.appid]),a.btns)for(var t=0,i=a.btns.length;t<i;t++)a.btns[t].state=n,a.btns[t].innerHTML=o;"function"==typeof s&&s(a,e)}else e==l?clearInterval(h[a.appid]):d.app.isDownloaded(a,function(e){d.log(a.appid,"monitorAppDownloadState->mweixin.app.isDownloaded->ret->"+e),a.onlyOne&&(clearInterval(h[a.appid]),delete a.onlyOne);var n="",t="";if(t=0==e?(n="downloaded",tipsMsg.installText||gMsg.installText):2==e?(n="downloaded",tipsMsg.downloadingText||gMsg.downloadingText):(n="notdownload",tipsMsg.downloadText||gMsg.downloadText),o!=tipsMsg.upgradeText&&o!=gMsg.upgradeText&&"鏇存柊"!=o||(t=o),a.btns&&n)for(var i=0,r=a.btns.length;i<r;i++)a.btns[i].state=n,a.btns[i].innerHTML=t;m(s,e)})})},1e3)}else"function"==typeof s&&s(l)}function y(e){d.log(e.appid,"mweixin.app.isAppInstalled->installApp->param.yyURL");var n=tipsMsg.androidnotreadyText||gMsg.androidnotreadyText,t=e.yyURL?"twoBtn":"oneBtn";p&&(n=tipsMsg.iosnotreadyText||gMsg.iosnotreadyText),e.yyURL&&(n=p?tipsMsg.iosjumpText||"娓告垙IOS鐗堟殏鏈笂鏋讹紝椹笂鍘婚绾�":tipsMsg.androidjumpText||"娓告垙Android鐗堟殏鏈笂鏋讹紝椹笂鍘婚绾�"),clearInterval(v[e.appid]),clearInterval(h[e.appid]),d.log(e.appid,"mweixin.app.isAppInstalled->installApp->alert"),Promise.resolve().then(function(){r.UI=S(5),UI.alert(n,{style:t,confirmCb:function(){e.yyURL&&(location.href=e.yyURL)}})}.bind(null,S)).catch(S.oe)}function x(t,i){b(t,i)||d.app.isAppInstalled(t,function(e){if(d.log(t.appid,"gAiO->isAppInstalled->ret->"+e),0==e){if(a&&t.donotAutoDownload)return void Promise.resolve().then(function(){r.UI=S(5),UI.alert("璇蜂粠妗岄潰鍚姩")}.bind(null,S)).catch(S.oe);d.app.launchApp(t,function(e){if(0==e)"function"==typeof i&&i(6);else{if(2==t.AppType&&(t.AppType=1,b(t,i)))return;if(1==e)return void("function"==typeof i&&i(3));d.app.addDownloadTask(t,function(e){if(d.log(t.appid,"gAiO->isAppInstalled->_isiOS->addDownloadTask->ret->"+e),e==l)return y(t),void("function"==typeof i&&i(l));0==e&&"function"==typeof i&&i(3),h(t,function(e){d.log(t.appid,"gAiO->_isiOS->monitorAppInstallState->ret->"+e)})})}d.log(t.appid,"gAiO->isAppInstalled->launchApp->ret->"+e)})}else{if(2==t.AppType&&(t.AppType=1,b(t,i)))return;if(p){if(e==l)return y(t),void("function"==typeof i&&i(l));d.app.addDownloadTask(t,function(e){d.log(t.appid,"gAiO->isAppInstalled->_isiOS->addDownloadTask->ret->"+e),h(t,function(e){d.log(t.appid,"gAiO->_isiOS->monitorAppInstallState->ret->"+e)}),0==e&&"function"==typeof i&&i(3)})}else{if(e==l)return y(t),void("function"==typeof i&&i(l));var n=e;d.log(t.appid,"gAiO->isAppInstalled-> "+e+"->_isAndroid->isDownloaded"),d.app.isDownloaded(t,function(e){d.log(t.appid,"gAiO->isAppInstalled->_isAndroid->isDownloaded->ret->"+e),0==e&&17!=n?("function"==typeof i&&i(11),d.app.installApp(t,function(e){d.log(t.appid,"gAiO->isAppInstalled->_isAndroid->isDownloaded->installApp->ret->"+e),-1==e&&x(t,i)})):2==e?v(t):(e<0||17==n)&&(d.log(t.appid,"gAiO->isAppInstalled->fail->isDownloaded->fail->ret->-1->addDownloadTask"),d.app.addDownloadTask(t,function(e){0==e&&(v(t),g.invoke("queryDownloadTask",{appid:t.appid},function(e){t.download_id=e.download_id}),"function"==typeof i&&i(17==n?17:3)),d.log(t.appid,"gAiO->isAppInstalled->fail->isDownloaded->fail->ret->-1->addDownloadTask->ret="+e)}))})}}})}function _(t){c?g.verifyJsapi(g.apis,function(e){g.invoke("openUrlWithExtraWebview",{url:t.url,openType:1},function(e){e=e||{},d.log("openUrlWithExtraWebview res",encodeURIComponent(JSON.stringify(param)),encodeURIComponent(JSON.stringify(e)));var n=e.err_msg||e.errMsg||"";d.log("open openUrlWithExtraWebview ret ",t,e),-1==n.indexOf(":ok")&&(location.href=t.url)})}):location.href=t.url}function b(e,n){if(d.log("goH5GamePage",encodeURIComponent(JSON.stringify(e))),"AppType"in e&&1==e.AppType&&e.HVAppInfo&&e.HVAppInfo.LaunchUrl){var t=6313<=u&&p?"openWKWebView":!!(6500<u&&a)&&"openCustomWebview",i={orientation:e.orientation||"",fullscreen:"fullscreen"in e&&e.fullscreen?"true":"false",url:e.HVAppInfo.LaunchUrl.split("#")[0]};if(a&&("closeCurrent"in e&&(i.finish_recent_webview=e.closeCurrent?"1":"0"),"noSwipe"in e&&(i.disable_swipe_back=e.noSwipe?"1":"0")),i.url=i.url.replace(/^\s+/g,"").replace(/\s+$/g,""),d.log("open h5 game",t,encodeURIComponent(JSON.stringify(i))),m(n,70),t)return r=t,o=i,g.verifyJsapi(g.apis,function(e){g.invoke(r,o,function(e){e=e||{},d.log(r+" res",encodeURIComponent(JSON.stringify(o)),encodeURIComponent(JSON.stringify(e)));var n=e.err_msg||e.errMsg||"";d.log("open "+r+" ret ",o,e),-1==n.indexOf(":ok")&&_(o)})}),!0;_(i)}var r,o;return!1}r.tipsMsg=r.tipsMsg||{},r.gMsg=S(47).gMsg||{},d.build=function(e,n){var t,i=/(iPhone|iPad|iPod|iOS)/i.test(s.window.navigator.userAgent),r=/(Android)/i.test(s.window.navigator.userAgent),o=e.lastIndexOf("."),a=function(e,n){var t=e.split("."),i=n||window;for(var r in t)!i[e=t[r]]&&(i[e]={}),i=i[e];return i}(e.substring(0,o),d);t=n.iOS&&i?n.iOS:n.android&&r?n.android:function(){},a[e.substring(o+1)]=t},d.log=function(){n&&((new Image).src="/?"+JSON.stringify(arguments))},d.build("app.isDownloaded",{iOS:function(){},android:function(i,r){g.invoke("queryDownloadTask",{appid:i.appid},function(e){var n,t=e&&e.state||"";n=t&&-1!=t.indexOf("_succ")?0:t&&-1!=t.indexOf("ing")?2:t&&-1!=t.indexOf("_fail")?-1:-2,"download_id"in e&&(i.download_id=e.download_id),m(r,n)})}}),d.build("app.isAppInstalled",{iOS:function e(n,t){if(d.log(n.appid,"mweixin.app.isAppInstalled->installApp->!param.ioslink="+!n.ioslink),!n.ioslink||!n.ioslink)return m(t,l),void d.log(n.appid,"err: isAppInstalled,iOS , no Param ioslink");c&&w(e,[n,t])?m(t,0):d.log(n.appid,"mweixin.app.isAppInstalled->installApp->!_isWechat||!bridgeReadyCall(arguments.callee, [param, cbk])")},android:function e(r,o){if(!r.pkgname||!r.md5sum||!r.androiddownurl)return d.log(r.appid,"err: isAppInstalled,android , no Param pkgname"),void m(o,l);c&&w(e,[r,o])&&g.invoke("getInstallState",{packageName:r.pkgname},function(e){var n=1;if(e&&(e.err_msg||e.errMsg)&&0==(n=-1<(e.err_msg||e.errMsg).indexOf(":yes")?0:1)){var t=parseInt((e.err_msg||e.errMsg).split(":yes_")[1]),i=parseInt(r.version||"0");i&&t<i&&(n=17)}m(o,n)})}}),d.build("app.addDownloadTask",{iOS:function e(n,t){if(!n||!n.iosdownurl)return m(t,l),void d.log(n.appid,"err: addDownloadTask, iOS, no Param iosdownurl");if(d.log(n.appid,"app.addDownloadTask !_isWechat || !bridgeReadyCall(arguments.callee, [param, cbk])",!c,!w(e,[n,t])),c&&w(e,[n,t])){var i=n.isFromWeappEntry;6505<u&&!i?(d.log(n.appid,n.iosdownurl,"before : wxBridge.verifyJsapi3"),d.log(n.appid,n.iosdownurl,"before downloadAppInternal3:"),g.invoke("downloadAppInternal",{appUrl:n.iosdownurl},function(e){d.log(n.appid,n.iosdownurl,"addDownloadTask downloadAppInternal: ",JSON.stringify(e)),-1==(e.err_msg||e.errMsg||"").indexOf(":ok")&&(location.href=n.iosdownurl)})):(d.log("app.addDownloadTask->wxBridge.verifyJsapi-> wechat version error",g.apis,n),location.href=n.iosdownurl),m(t,0)}},android:function e(n,t){if(!(n&&n.pkgname&&n.androiddownurl&&n.md5sum&&n.appid))return m(t,l),void d.log(n.appid,"err: addDownloadTask, android, no Param pkgname or androiddownurl or md5sum or appid");if(c&&w(e,[n,t])){if(n.forceYYB)return n.url="https://a.app.qq.com/o/simple.jsp?pkgname="+n.pkgname,void _(n);r=t,o=6506<u?"addDownloadTaskStraight":"addDownloadTask",a=void 0!==(i=n).downloadertype?i.downloadertype:1,s={task_name:i.appname||i.pkgname,package_name:i.pkgname,task_url:i.androiddownurl,file_md5:i.md5sum,appid:i.appid,scene:i.scene,extInfo:i.extInfo||encodeURIComponent(JSON.stringify({gameid:i.appid,noticeid:i.noticeid||f("noticeid"),actid:i.actid||f("actid"),ssid:i.ssid||f("ssid"),abt:i.abt||f("abt"),url:location.href.replace(/&?pass_ticket=[^&]*/,"").replace(/&?uin=[^&]*/,"").replace(/&?key=[^&]*/,"").replace(/&?abtest_cookie=[^&]*/,"")})),downloader_type:a},i.androidpkgsize&&(s.task_size=i.androidpkgsize),i.alternativeurl&&(s.alternative_url=i.alternativeurl),i.use_downloader_widget&&(s.use_downloader_widget=i.use_downloader_widget),d.log(n.appid,"mweixin.app.addDownloadTask->_game_info="+JSON.stringify(s)),g.invoke(o,s,function(e){d.log(n.appid,"mweixin.app.addDownloadTask->res="+JSON.stringify(e)),e&&-1<(e.err_msg||e.errMsg).indexOf(":ok")?(m(r,0),v(i)):m(r,-1)})}var i,r,o,a,s}}),d.build("app.installApp",{iOS:function(e,n){},android:function e(i,r){if(!(i&&i.pkgname&&i.androiddownurl&&i.md5sum&&i.appid))return m(r,l),void d.log(i.appid,"err: addDownloadTask, android, no Param pkgname or androiddownurl or md5sum or appid");c&&w(e,[i,r])&&(g.invoke("installDownloadTask",{download_id:i.download_id},function(e){if(d.log(i.appid,"mweixin.app.installApp->installDownloadTask->res="+JSON.stringify(e)),-1!=(e.err_msg||e.errMsg).indexOf(":fail"))m(r,-1);else{if(i.btns)for(var n=0,t=i.btns.length;n<t;n++)i.btns[n].state="installing",i.btns[n].innerHTML=tipsMsg.installText||gMsg.installText;m(r,0)}}),h(i))}}),d.build("app.launchApp",{iOS:function e(n,t){if(!n||!n.appid)return d.log(n.appid,"err: launchApp, iOS, no Param appid"),void m(t,l);c&&w(e,[n,t])&&(b(n,t)||(d.log("wxBridge.apis->",g.apis),g.invoke(o(),{showLaunchFailToast:!1,appID:n.appid,extInfo:n.extInfo||"WX_GameCenter",messageExt:n.messageExt||"WX_GameCenter",installSchemeUrl:n.iosdownurl||"",installAction:1},function(e){if(d.log(n.appid,"info: iOS "+o()+" "+JSON.stringify(e)),-1==(e.err_msg||e.errMsg).indexOf(":ok")){if(!n.ioslink)return d.log(n.appid,"err: launchApp, iOS, no Param ioslink"),void m(t,l);m(t,-1)}else e.launchInstallResult&&-1!=e.launchInstallResult.indexOf("ok")?m(t,1):m(t,0)})))},android:function e(n,t){if(!n||!n.appid)return d.log(n.appid,"err: launchApp, android, no Param appid"),void m(t,l);c&&w(e,[n,t])&&g.invoke(o(),{appID:n.appid,showLaunchFailToast:!1,messageExt:n.messageExt||"WX_GameCenter",extInfo:n.messageExt||"WX_GameCenter"},function(e){if(d.log(n.appid,"info: Android "+o()+" "+JSON.stringify(e)),-1==(e.err_msg||e.errMsg).indexOf(":ok")){if(!n.schemecall)return d.log(n.appid,"err: launchApp, android, no Param schemecall"),void m(t,l);window.location=n.schemecall,m(t,0)}else m(t,0)})}}),d.build("app.allinone",{iOS:x,android:x}),d.build("app.popInvalid",{iOS:y,android:y}),d.build("app.goH5GamePage",{iOS:b,android:b}),d.build("app.autoFillAppItem",{iOS:i,android:i}),r.monitorAppInstallState=h,r.monitorAppDownloadState=v,(r.initDownInternal=t)(),k.exports=d}(Dom.window||window,document)},function(e,n){e.exports={gMsg:{iosStartText:"杩涘叆娓告垙",startText:"鍚姩娓告垙",iosStartText:"杩涘叆娓告垙",installText:"瀹夎娓告垙",downloadText:"涓嬭浇娓告垙",downloadingText:"涓嬭浇涓�",gotGiftOK:"鎭枩锛岀ぜ鍖呴鍙栨垚鍔�",exceedMsg:"浣犲凡杈惧埌棰嗗彇涓婇檺锛屾棤娉曢鍙�",cashExceedMsg:"娲诲姩澶伀鐖嗭紝鐜伴噾琚瀹屼簡",cashTimeLimit:"绾㈠寘鏈嶅姟鍣ㄥお蹇欙紝璇风◢鍚庨噸璇�",cashAccountLimt:"寰堟姳姝夛紝鏈椿鍔ㄤ粎闄愬井淇℃椿璺冭�佺敤鎴峰弬涓�",giftNotExists:"绀煎寘宸蹭笅鏋讹紝鏆傛椂鏃犳硶棰嗗彇",giftTimeout:"绀煎寘鐘舵�佸凡杩囨湡锛岄渶鍒锋柊鐘舵��",roleNotExists:"鏈敞鍐屾父鎴忚鑹诧紝娉ㄥ唽瑙掕壊鍚庡啀鏉ラ鍙�",queryRoleError:"鏌ヨ缁戝畾瑙掕壊澶辫触",cantgetError:"浣犱笉婊¤冻棰嗗彇鏉′欢锛岃瀹屾垚浠诲姟鍚庡啀鏉ラ鍙�",gotGiftText:"浣犲凡缁忛鍙栬繃濂栧姳鍟︼紝璧剁揣鍘绘父鎴忔煡鐪嬪惂",actOverText:"娲诲姩宸茬粡缁撴潫鍟︼紝灏忎紮浼翠滑鏈熷緟涓嬫鐨勬椿鍔ㄥ惂",errorText:"璇峰埛鏂伴〉闈�,绋嶅悗閲嶈瘯",dateError:"瀵逛笉璧凤紝璇蜂簬鎸囧畾鏃ユ湡棰嗗彇濂栧姳锛�",downloading:"娓告垙涓嬭浇涓紝璇峰畨瑁呮父鎴忓悗閲嶈瘯",failError:"瀵逛笉璧凤紒棰嗗彇澶辫触锛岄噸鏂版潵涓�娆★紒",notDown:"浣犺繕娌℃湁瀹夎娓告垙锛岀偣鍑荤‘瀹氬悗涓嬭浇娓告垙鐧诲綍鍚庢墠鍙互棰嗗彇鍝︼紒",androidnotreadyText:"娓告垙Android鐗堣繕鏈笂鏋讹紝鎰熻阿浣犵殑鍏虫敞",iosnotreadyText:"娓告垙iOS鐗堣繕鏈笂鏋讹紝鎰熻阿浣犵殑鍏虫敞",notInstall:"浣犻渶瑕佸厛涓嬭浇骞跺畨瑁呮父鎴忥紝鎵嶅彲棰嗗彇鍝燂紒",notFinish:"鎶辨瓑锛屼綘灏氭湭瀹屾垚浠诲姟锛岃瀹屾垚鍚庡啀鏉ラ鍙栵紒",failType1:"浣犲皻鏈櫥褰曪紝椹笂鐧诲綍鍗冲彲棰嗗彇鍝︼紒",failType2:"浣犲皻鏈揪鍒版寚瀹氬垎鏁帮紝璧跺揩杩涙父鎴忓埛鏂扮邯褰曞惂锛�",failType4:"浣犲皻鏈敞鍐岋紝椹笂娉ㄥ唽鍗冲彲棰嗗彇鍝︼紒",failType5:"浣犲皻鏈揪鍒版寚瀹氱瓑绾э紝璧跺揩杩涙父鎴忓幓鏀掔粡楠屽惂锛�",failType6:"浣犲皻鏈畬鎴愭寚瀹氬眬鏁帮紝璧跺揩杩涙父鎴忕帺鍑犳妸鍚э紒",getItNow:"绔嬪嵆棰嗗彇",gotIt:"宸查鍙�",invalidLogin:"鏃犳晥鐨勭敤鎴凤紝璇烽噸鏂拌繘鍏�",whitelistErrMsg:"寰堟姳姝夛紝浣犱笉鏄湰鏈熺殑骞歌繍鏄�",actSigned:"浣犱粖鏃ュ凡缁忕鍒拌繃鍟︼紝鏄庡ぉ缁х画鍚э紒"}}},function(e,n,t){var i=t(2);i.getInstallState=i.getInstallState||function(e,n){i.invoke("getInstallState",e,n)},e.exports=i},function(e,n,t){var i=t(14),r=t(1),o=t(10),d=r.getQueryStr,c=o.getKeyValue,u=t(9),p=t(50);!function(a,s){"use strict";var l=a.reportObj;a.report=function(n){var t;t=function(e){!function(e){var n=location.protocol+"//game.weixin.qq.com/cgi-bin/comm/gamewebstat?";e=e||{};var t=parseInt(e.abt||d("abt",null,top))||-1;n+="noticeid="+(e.nNoticeID||l.noticeid||0),n+="&appid="+(e.sAppID||s.sAppID||s.sAppId||""),n+="&usropstate="+(e.nUrOpState||0);var i=e.iActID||l.actid||0;n+="&actid="+i,n+="&networktype="+(e.nNetworkType||l.networktype||""),null!=e.uin&&(n+="&uin="+e.uin,n+="&key="+e.key,n+="&pass_ticket="+e.pass_ticket),null!=e.sig&&(n+="&sig="+e.sig,n+="&timestamp="+e.timestamp,n+="&algorithm="+e.algorithm,n+="&version="+e.version,n+="&encode="+e.encode,n+="&msdkEncodeParam="+e.msdkEncodeParam),n+="&sourcescene="+(e.nSourceScene||l.sourcescene||d("ssid",null,top)||0),n+="&destinationscene="+(e.nDestinationScene||0),n+="&appstate="+(e.nAppState||0),n+="&appversion="+(e.nAppVersion||""),n+="&assiststate="+(e.nAssistState||""),n+="&assistversion="+(e.nAssistVersion||0),n+="&openid="+(e.sOpenID||d("openid",null,top)||c("openid")||""),n+="&optype="+(e.iOptype||0),n+="&giftid="+(e.iGiftID||0),n+="&pid="+(e.iPid||0);var r=d("rpt_allpath");0<(""+r).length&&(r+="_act"+i),n+="&allpath="+(e.sAllPath||r||""),e.ExternInfo=e.ExternInfo||"{}";var o=decodeURIComponent(e.ExternInfo);try{o=JSON.parse(o),isNaN(t)||(o.abt=t),e.ExternInfo=encodeURIComponent(JSON.stringify(o))}catch(e){console.error("10861 extinfo json parse error!")}n+="&externinfo="+e.ExternInfo,n+="&t="+(new Date).getTime(),a.imgReport(n)}(r.extend(n,e))},-1!=location.search.indexOf("sig")?t(p.getMsdkLogin()):u.getUinKey(function(e){t(e)})},e.exports=a}(r.extend({},i),window)},function(e,n,t){var o=t(1).getQueryStr;e.exports={getMsdkLogin:function(){for(var e=["sig","timestamp","algorithm","version","encode","msdkEncodeParam","appid"],n={},t=0,i=e.length;t<i;t++){var r=o(e[t]);n[e[t]]=r||""}return n}}}])</script><script id="externalJsLoadEndPoint">document.getElementById("externalJsLoadEndPoint").setAttribute("data-time",+new Date)</script><script type="text/javascript">console.log("weixin://whiteScreenEnd")</script></body><script>var toolFuncs={doXhr:function(t,e){var n=new XMLHttpRequest,r=e;r.method=r.method.toUpperCase(),r.url=t,n.open(r.method,r.url),"POST"==r.method&&n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),"object"==typeof r.data?n.send(this.mapToStr(r.data)):n.send(r.data)},getNetworkType:function(){var t=(navigator.userAgent||navigator.wxuserAgent).match(/NetType\/[^\s]+/i),e="",n={wifi:0,uninet:2,uniwap:2,cmnet:2,cmwap:2,ctnet:2,ctwap:2,"2g":2,"3g":3,"3gnet":3,"3gwap":3,nonwifi:3,"4g":4,lte:4,ctlte:4,"3g+":4,"4gnet":4};return t&&1<=t.length&&(e=t[0].split("/")[1].toLowerCase()),e in n?n[e]+"":"1"},getQueryStr:function(t,e){"use strict";var n=e||location.search,r=(n=(""+n).replace(/#(.*)$/g,"").replace(/&amp;/g,"&")).match(new RegExp("[?&]"+t+"=([^&]+)","i"));return null==r||r.length<=1?"":r[1]},extend:function(){for(var t=arguments,e=t[0],n=1,r=t.length;n<r;n++){var a=t[n];for(var i in a)e[i]=a[i]}return e},mapToStr:function(t,e,n){try{e=e||"&",n=n||"=";var r=[];for(var a in t)r.push(a+n+t[a]);return r.join(e)}catch(t){}},getDevice:function(){var t=navigator.userAgent||navigator.wxuserAgent||"";return/(iPhone|iPad|iPod|IOS)/i.test(t)?"iphone":/(Android)/i.test(t)?"android":"0"},getDeviceType:function(){var t=/\(.*?\)/g,e=(navigator.userAgent||navigator.wxuserAgent||"").match(t);return!e||e.length<=0?"0":(t=/([^;]*(?=Build))/g,!(e=e[0].match(t))||e.length<=0?"0":e[0])},getClientVersion:function(t){var e=(navigator.userAgent||navigator.wxuserAgent||str).match(/MicroMessenger\/([\d\.]+)/i),n="",r=[1e3,100,1],a=0;if(e&&1<e.length&&(n=e[1]),t)return n;for(var i=0,o=(n=n.split(".").slice(0,3)).length;i<o;i++){var g=parseInt(n[i].substr(0,2));isNaN(g)||(a+=g*r[i])}return a}}</script><script>try{var userAgent=navigator.userAgent||navigator.wxuserAgent||"",params={device:/(iPhone|iPad|iPod|IOS)/i.test(userAgent)?1:/(Android)/i.test(userAgent)?2:0,network_type:parseInt(toolFuncs.getNetworkType()),client_version:toolFuncs.getClientVersion(!0).match(/(\d+\.){2}\d+/g)?toolFuncs.getClientVersion(!0):"",bid:1,type:999999,status:999999,scene_id:0,ssid:parseInt(toolFuncs.getQueryStr("ssid"))||0,cost_time:{},url:"",ext:"",time:Math.floor((new Date).getTime()/1e3)},login={uin:toolFuncs.getQueryStr("uin"),pass_ticket:toolFuncs.getQueryStr("pass_ticket"),key:toolFuncs.getQueryStr("key")};function BroadCastList(){return this.queue=[],this.notifyCb=null,this}BroadCastList.prototype.push=function(t){this.queue.push(t),this.notifyCb&&(this.notifyCb(this.queue),this.queue=[])},BroadCastList.prototype.register=function(t){this.notifyCb=t,0<this.queue.length&&(this.notifyCb(this.queue),this.queue=[])},window._reportlist_=new BroadCastList,function(t,a){t.triggerProcessAndReport=function(){for(var t=a._reportlistArr_,e=0,o=t.length;e<o;e++){var s=t[e].target,i=t[e],r=i.url,n=i.type;if(delete t[e].target,/^http/i.test(r)||(r=location.protocol+r),(/\.\.\//i.test(r)||/\.\//i.test(r))&&(r=s.src||s.href),i.url=r,!_reportedlist_[r]){if(3==n||4==n)a._reportlist_.push(i);else if(2==n){var u=a.toolFuncs.extend(params,i);setTimeout(function(){a.toolFuncs.doXhr("/cgi-bin/comm/pagestat?op=batch&"+a.toolFuncs.mapToStr(login),{method:"POST",data:{monitor_data:encodeURIComponent(JSON.stringify([u]))}})},1e3)}setTimeout(function(){s.src?s.setAttribute("src",r):s.href&&s.setAttribute("href",r)},1500),a._reportedlist_[r]=!0}}a._reportlistArr_=[]}}(window.toolFuncs,window),window.toolFuncs.triggerProcessAndReport()}catch(t){console.log(t)}</script></html>